{"id":18043246,"url":"https://github.com/zaczero/polyline-rs","last_synced_at":"2026-02-11T03:07:02.604Z","repository":{"id":260165704,"uuid":"880495320","full_name":"Zaczero/polyline-rs","owner":"Zaczero","description":"Fast Google Encoded Polyline encoding \u0026 decoding in Rust for Python","archived":false,"fork":false,"pushed_at":"2024-10-30T02:26:13.000Z","size":14,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2024-12-13T19:51:52.222Z","etag":null,"topics":["decoding","encoding","gis","google","google-maps","googlemaps","mapbox","openstreetmap","polyline","polyline-decoder","polyline-encoder"],"latest_commit_sha":null,"homepage":"https://pypi.org/p/polyline-rs","language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"unlicense","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Zaczero.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-10-29T20:37:40.000Z","updated_at":"2024-10-30T02:26:00.000Z","dependencies_parsed_at":"2024-10-29T23:39:44.269Z","dependency_job_id":null,"html_url":"https://github.com/Zaczero/polyline-rs","commit_stats":null,"previous_names":["zaczero/polyline-rs"],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Zaczero%2Fpolyline-rs","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Zaczero%2Fpolyline-rs/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Zaczero%2Fpolyline-rs/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Zaczero%2Fpolyline-rs/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Zaczero","download_url":"https://codeload.github.com/Zaczero/polyline-rs/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":230238281,"owners_count":18194988,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["decoding","encoding","gis","google","google-maps","googlemaps","mapbox","openstreetmap","polyline","polyline-decoder","polyline-encoder"],"created_at":"2024-10-30T17:07:38.161Z","updated_at":"2026-02-11T03:07:02.540Z","avatar_url":"https://github.com/Zaczero.png","language":"Rust","readme":"# polyline-rs\n\n![Python Free-Threaded Compatible](https://shields.monicz.dev/badge/Free--Threaded-Compatible-blue?logo=Python\u0026logoColor=f0c74c)\n[![PyPI - Python Version](https://shields.monicz.dev/pypi/pyversions/polyline-rs)](https://pypi.org/project/polyline-rs)\n[![Liberapay Patrons](https://shields.monicz.dev/liberapay/patrons/Zaczero?logo=liberapay\u0026label=Patrons)](https://liberapay.com/Zaczero/)\n[![GitHub Sponsors](https://shields.monicz.dev/github/sponsors/Zaczero?logo=github\u0026label=Sponsors\u0026color=%23db61a2)](https://github.com/sponsors/Zaczero)\n\nFast Google Encoded Polyline encoding \u0026 decoding in Rust with Python bindings. Library with out-of-the-box support for both (lat, lon) and (lon, lat) coordinates.\n\n[Encoded Polyline Algorithm Format](https://developers.google.com/maps/documentation/utilities/polylinealgorithm)\n\n## Installation\n\nPre-built binary wheels are available for Linux, macOS, and Windows, with support for both x64 and ARM architectures.\n\n```sh\npip install polyline-rs\n```\n\n## Basic usage\n\n```py\nfrom polyline_rs import encode_latlon, encode_lonlat, decode_latlon, decode_lonlat\n\nline = encode_latlon([(38.5, -120.2), (40.7, -120.95), (43.252, -126.453)], 5)\nassert line == \"_p~iF~ps|U_ulLnnqC_mqNvxq`@\"\n\ncoords = decode_latlon(line, 5)\nassert coords == [(38.5, -120.2), (40.7, -120.95), (43.252, -126.453)]\n\ncoords2 = decode_lonlat(line, 5)\nassert coords2 == [(-120.2, 38.5), (-120.95, 40.7), (-126.453, 43.252)]\n```\n","funding_links":["https://liberapay.com/Zaczero/","https://github.com/sponsors/Zaczero"],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzaczero%2Fpolyline-rs","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fzaczero%2Fpolyline-rs","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzaczero%2Fpolyline-rs/lists"}