Crate polyline_iter

Crate polyline_iter 

Source

Structs§

PolylineIter
Iterator over geographic coordinates (latitude/longitude pairs) decoded from a polyline-encoded string.

Functions§

decode
Decodes a polyline-encoded string into an iterator over geographic coordinates (latitude/longitude pairs).
encode
Encodes a sequence of points (latitude, longitude pairs) into a polyline string with the given precision. The precision parameter specifies the number of decimal places in the coordinates (5 for polyline5, 6 for polyline6), with a maximum value of 7 which corresponds to ~1cm precision at the equator.