Expand description
This module exposes functions for accessing the Polyline encoding and decoding functions via FFI
§A Note on Coordinate Order
This crate uses Coordinate 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.
Structs§
- External
Array - A C-compatible
structoriginating outside Rust used for passing arrays across the FFI boundary - Internal
Array - A C-compatible
structoriginating inside Rust used for passing arrays across the FFI boundary
Functions§
- decode_
polyline_ ⚠ffi - Convert a Polyline into an array of coordinates
- drop_
cstring ⚠ - Free
CStringmemory which Rust has allocated across the FFI boundary - drop_
float_ array - Free Array memory which Rust has allocated across the FFI boundary
- encode_
coordinates_ ffi - Convert an array of coordinates into a Polyline