Registry / serialization / twpayne-go-polyline

twpayne-go-polyline

JSON →
library1.1.1gogounverified

A Go library for encoding and decoding Google Maps polyline format.

go get github.com/twpayne/go-polyline
INSTALL
IMPORT
SIG · TWPAYNE-GO-POLYLIN
T
twpayne-go-polyline
serializationgov1.1.1
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.

polyline
github.com/twpayne/go-polyline

Encode coordinates to polyline string

package main import ( "fmt" "github.com/twpayne/go-polyline" ) func main() { coords := []float64{38.5, -120.2, 40.7, -120.95} encoded := polyline.EncodeCoords(coords) fmt.Println(string(encoded)) }
Debug
Known issues

No known issues recorded.

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

No dependency data recorded yet.

Agent activity
9 hits · last 30 days
node
8
OpenAI (training)
1
Resources
twpayne-go-polyline — go get twpayne-go-polyline · libregistry