_coordinate

package
v1.2.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 13, 2026 License: MIT Imports: 1 Imported by: 0

Documentation

Index

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 ConvertBD09ToGCJ02(lngLat [2]float64) [2]float64

func ConvertGCJ02ToBD09

func ConvertGCJ02ToBD09(lngLat [2]float64) [2]float64

func ConvertGCJ02ToWGS84

func ConvertGCJ02ToWGS84(lngLat [2]float64) [2]float64

func ConvertLngLatToXY

func ConvertLngLatToXY(lngLat [2]float64) [2]float64

func ConvertWGS84ToGCJ02

func ConvertWGS84ToGCJ02(lngLat [2]float64) [2]float64

func ConvertXYToLngLat

func ConvertXYToLngLat(xy [2]float64) [2]float64

func Distance

func Distance(p1 [2]float64, p2 [2]float64) float64

func DistancePToP1P2

func DistancePToP1P2(p [2]float64, p1 [2]float64, p2 [2]float64) float64

func DistancePToPath

func DistancePToPath(p [2]float64, path [][2]float64) float64

func GetAngle

func GetAngle(lngLatFrom [2]float64, lngLatTo [2]float64) float64

func GetBD09Distance

func GetBD09Distance(lngLatFrom [2]float64, lngLatTo [2]float64) float64

func GetGCJ02Distance

func GetGCJ02Distance(lngLatFrom [2]float64, lngLatTo [2]float64) float64

func GetWGS84Distance

func GetWGS84Distance(lngLatFrom [2]float64, lngLatTo [2]float64) float64

func PToP1P2

func PToP1P2(p [2]float64, p1 [2]float64, p2 [2]float64) [2]float64

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL