Ecosyste.ms: Packages

An open API service providing package, version and dependency metadata of many open source software ecosystems and registries.

Top 2.7% on proxy.golang.org
Top 0.7% dependent packages on proxy.golang.org
Top 0.5% dependent repos on proxy.golang.org
Top 4.7% forks on proxy.golang.org

proxy.golang.org : github.com/twpayne/go-polyline

Package polyline implements a Google Maps Encoding Polyline encoder and decoder. See https://developers.google.com/maps/documentation/utilities/polylinealgorithm. The default codec encodes and decodes two-dimensional coordinates scaled by 1e5. For other dimensionalities and scales create a custom Codec. The package operates on byte slices. Encoding functions take an existing byte slice as input (which can be nil) and return a new byte slice with the encoded value appended to it, similarly to how Go's append function works. To increase performance, you can pre-allocate byte slices, for example by passing make([]byte, 0, 128) as the input byte slice. Similarly, decoding functions take a byte slice as input and return the remaining unconsumed bytes as output.

Registry - Source - Documentation - JSON
purl: pkg:golang/github.com/twpayne/go-polyline
Keywords: decoding, encoding, geospatial, gis, go, golang, google-maps, polyline
License: BSD-2-Clause
Latest release: over 2 years ago
First release: almost 6 years ago
Namespace: github.com/twpayne
Dependent packages: 38
Dependent repositories: 214
Stars: 82 on GitHub
Forks: 23 on GitHub
See more repository details: repos.ecosyste.ms
Last synced: 14 days ago

    Loading...
    Readme
    Loading...