Registry / utility / paulmach-go-geo

paulmach-go-geo

JSON →
library0.0.0-20180829195134-22b514266d33gogounverified

A geometry/geography library in Go for working with geographic data.

go get github.com/paulmach/go.geo
INSTALL
IMPORT
SIG · PAULMACH-GO-GEO
P
paulmach-go-geo
utilitygov0.0.0-20180829195134-22b514266d33
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

geo
✓ github.com/paulmach/go.geo

Create a point and compute distance to another point.

package main import ( "fmt" "github.com/paulmach/go.geo" ) func main() { point := &geo.Point{Lat: 40.7128, Lng: -74.0060} fmt.Println(point.DistanceFrom(&geo.Point{Lat: 34.0522, Lng: -118.2437})) }
Debug
Known issues

No known issues recorded.

Upgrade
Version history
0.0.0-20180829195134-22b514266d33latest on pkg.go.dev
Audit
Dependencies

No dependency data recorded yet.

Agent activity
8 hits · last 30 days
node
8
Resources
paulmach-go-geo — go get paulmach-go-geo · libregistry