Documentation
¶
Overview ¶
Package transform coordinate between earth(WGS-84) and mars in china(GCJ-02).
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Distance ¶
Distance calculate the distance between point(latA, lngA) and point(latB, lngB), unit in meter.
func GCJtoWGS ¶
GCJtoWGS convert GCJ-02 coordinate(gcjLat, gcjLng) to WGS-84 coordinate(wgsLat, wgsLng). The output WGS-84 coordinate's accuracy is 1m to 2m. If you want more exactly result, use GCJtoWGSExact/gcj2wgs_exact.
func GCJtoWGSExact ¶
GCJtoWGSExact convert GCJ-02 coordinate(gcjLat, gcjLng) to WGS-84 coordinate(wgsLat, wgsLng). The output WGS-84 coordinate's accuracy is less than 0.5m, but much slower than GCJtoWGS/gcj2wgs.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.