Documentation
¶
Index ¶
- Constants
- func ConvertBD09ToGCJ02(lngLat [2]float64) [2]float64
- func ConvertGCJ02ToBD09(lngLat [2]float64) [2]float64
- func ConvertGCJ02ToWGS84(lngLat [2]float64) [2]float64
- func ConvertLngLatToXY(lngLat [2]float64) [2]float64
- func ConvertWGS84ToGCJ02(lngLat [2]float64) [2]float64
- func ConvertXYToLngLat(xy [2]float64) [2]float64
- func Distance(p1 [2]float64, p2 [2]float64) float64
- func DistancePToP1P2(p [2]float64, p1 [2]float64, p2 [2]float64) float64
- func DistancePToPath(p [2]float64, path [][2]float64) float64
- func GetAngle(lngLatFrom [2]float64, lngLatTo [2]float64) float64
- func GetBD09Distance(lngLatFrom [2]float64, lngLatTo [2]float64) float64
- func GetGCJ02Distance(lngLatFrom [2]float64, lngLatTo [2]float64) float64
- func GetWGS84Distance(lngLatFrom [2]float64, lngLatTo [2]float64) float64
- func PToP1P2(p [2]float64, p1 [2]float64, p2 [2]float64) [2]float64
Constants ¶
View Source
const A = 6378137 // 6378245
View Source
const EE = 0.00669342162296594323
View Source
const EPSG3857MACLAT = 85.0511287798
View Source
const MR = 180 / math.Pi
View Source
const VR = math.Pi / 180
View Source
const YR = 6378137
Variables ¶
This section is empty.
Functions ¶
func ConvertBD09ToGCJ02 ¶
func ConvertGCJ02ToBD09 ¶
func ConvertGCJ02ToWGS84 ¶
func ConvertLngLatToXY ¶
func ConvertWGS84ToGCJ02 ¶
func ConvertXYToLngLat ¶
func DistancePToPath ¶
func GetBD09Distance ¶
func GetGCJ02Distance ¶
func GetWGS84Distance ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.