Registry / utility / kellydunn-golang-geo

kellydunn-golang-geo

JSON →
library0.7.0gogounverified

Geographic calculations and distance measurements for Go, including point, line, and polygon operations.

go get github.com/kellydunn/golang-geo
INSTALL
IMPORT
SIG · KELLYDUNN-GOLANG-G
K
kellydunn-golang-geo
utilitygov0.7.0
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/kellydunn/golang-geo

Calculate great-circle distance between two points

package main import ( "fmt" "github.com/kellydunn/golang-geo" ) func main() { p1 := geo.NewPoint(40.7128, -74.0060) p2 := geo.NewPoint(34.0522, -118.2437) dist := p1.GreatCircleDistance(p2) fmt.Println(dist) }
Debug
Known issues

No known issues recorded.

Upgrade
Version history
0.7.0latest on pkg.go.dev
Audit
Dependencies

No dependency data recorded yet.

Agent activity
4 hits · last 30 days
node
4
Resources
kellydunn-golang-geo — go get kellydunn-golang-geo · libregistry