Skip to content

goclub/geo

Repository files navigation

permalink sidebarBasedOnContent
/
true

goclub/geo

Golang 地理位置,支持 mongo goclub/sql WGS84 GCJ02 BD09

Go Reference

install

go get github.com/goclub/geo
import xgeo "github.com/goclub/geo"

WGS84

point := xgeo.WGS84{121.48294,31.2328}
// 转换为gcj02坐标
point.GCJ02().LatCommaLngString()

Point

支持 mongo json mysql

point := xgeo.NewPoint(xgeo.WGS84{121.48294,31.2328}) // WGS84{经度,纬度}
// 转换为wgs84坐标
point.WGS84()

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages