### Install polyline-rs using pip Source: https://github.com/zaczero/polyline-rs/blob/main/README.md Installs the polyline-rs library using pip. Pre-built wheels are available for Linux, macOS, and Windows on both x64 and ARM architectures. ```sh pip install polyline-rs ``` -------------------------------- ### Encode and Decode Polylines in Python Source: https://github.com/zaczero/polyline-rs/blob/main/README.md Demonstrates basic usage of the polyline-rs Python bindings for encoding and decoding polylines. It shows how to use both `encode_latlon` and `encode_lonlat`, as well as `decode_latlon` and `decode_lonlat` with a specified precision. ```python from polyline_rs import encode_latlon, encode_lonlat, decode_latlon, decode_lonlat line = encode_latlon([(38.5, -120.2), (40.7, -120.95), (43.252, -126.453)], 5) assert line == "_p~iF~ps|U_ulLnnqC_mqNvxq`@" coords = decode_latlon(line, 5) assert coords == [(38.5, -120.2), (40.7, -120.95), (43.252, -126.453)] coords2 = decode_lonlat(line, 5) assert coords2 == [(-120.2, 38.5), (-120.95, 40.7), (-126.453, 43.252)] ``` === COMPLETE CONTENT === This response contains all available snippets from this library. No additional content exists. Do not make further requests.