Skip to content

Fast Google Encoded Polyline encoding & decoding in Rust

License

Apache-2.0, MIT licenses found

Licenses found

Apache-2.0
LICENSE-APACHE
MIT
LICENSE-MIT
Notifications You must be signed in to change notification settings

georust/polyline

This branch is 4 commits ahead of, 6 commits behind main.

Folders and files

NameName
Last commit message
Last commit date

Latest commit

626bbdb · May 11, 2024
Apr 25, 2024
May 8, 2024
Mar 12, 2023
May 11, 2024
Jun 21, 2016
May 6, 2024
Aug 11, 2018
May 11, 2024
Sep 30, 2019
Sep 30, 2019
Mar 4, 2024
Feb 5, 2021

Repository files navigation

polyline

Crates.io Build Status

Google Encoded Polyline encoding & decoding in Rust.

A Note on Coordinate Order

This crate uses Coord and LineString types from the geo-types crate, which encodes coordinates in (x, y) order. The Polyline algorithm and first-party documentation assumes the opposite coordinate order. It is thus advisable to pay careful attention to the order of the coordinates you use for encoding and decoding.

Documentation

FFI

C-compatible FFI bindings for this crate are provided by the polyline-ffi crate.