{"categories":[{"label":"Python Modules","url":"https://skillfed.io/packages/category/software-development-libraries-python-modules/20"},{"label":"GIS","url":"https://skillfed.io/packages/category/scientific-engineering-gis"}],"enrichment":{"capability":"Encodes and decodes Google Polyline format coordinates using Rust FFI, providing fast compression of latitude-longitude sequences for mapping applications.","skillfed_tags":["geospatial","mapping","performance-critical"],"use_cases":["Compress GPS traces or route data for storage in a database or API response.","Encode map directions or navigation paths for transmission over bandwidth-constrained connections.","Decode polyline strings from Google Maps API responses or other mapping services.","Serialize coordinate sequences in web applications to reduce JSON payload size.","Convert between different polyline precision levels (Google's 5 vs. OSRM/Valhalla's 6)."],"what_it_does":"Pypolyline is a Python wrapper around a Rust library that encodes and decodes the Google Polyline Algorithm format, which compresses sequences of latitude-longitude coordinates into a compact string representation. It is designed for mapping and geospatial applications where route data, GPS traces, or other coordinate sequences need to be efficiently stored or transmitted.\n\nThe package uses FFI (Foreign Function Interface) and Cython to call compiled Rust code, achieving significant speed improvements over pure-Python implementations. It depends only on numpy and provides two main functions: encode_coordinates() to compress coordinate arrays into polyline strings, and decode_polyline() to expand them back. Error handling raises RuntimeError with details on invalid input. The package supports all currently supported Python versions (3.10\u20133.14) across Linux, macOS, and Windows.","worth_installing":"Yes, if you work with polyline-encoded geographic data. The package is actively maintained, has no known vulnerabilities, supports current Python versions across major platforms, and delivers substantial performance gains over pure-Python alternatives. The only caveat is verifying that the Blue Oak 1.0.0 license fits your use case, and remembering that coordinates must be in (Longitude, Latitude) order."},"id":"pypolyline","links":{"html":"https://skillfed.io/packages/pypolyline","md":"https://skillfed.io/packages/pypolyline.md","pypi":"https://pypi.org/project/pypolyline/"},"maintenance":{"status":"active"},"meta":{"latest_release":"2026-05-19","license_spdx":"BlueOak-1.0.0","license_treatment":"unclear","name":"pypolyline","python_support":"supports_current","summary":"Fast Google Polyline encoding and decoding using Rust FFI"},"popularity":{"monthly_downloads":105569,"position":12691,"tier":"top_15000"},"security":{"n_vulnerabilities":0},"version":"0.5.8"}
