About
Zero-dependency Rust crate for encoding and decoding Google's polyline format.
Compared to the georust/polyline crate, the polyline-iter
decodes polyline into an iterator over points instead of vector, which is benefitial when only a single iteration over the polyline is needed. And in such cases it performs twice as fast as the georust/polyline
crate and has no hidden allocations.
Usage
Add this to your Cargo.toml
:
[]
= "0.1"
Example
use PolylineIter;
let iter = new;
assert_eq!;
// If the points are not needed, the iterator can be used directly
assert_eq!;
// Transcoding into a polyline with a different precision
let polyline6 = encode;
License
All code in this project is dual-licensed under either:
at your option.