{"id":18600669,"url":"https://github.com/georust/polyline","last_synced_at":"2025-08-20T23:32:34.213Z","repository":{"id":54656847,"uuid":"61224885","full_name":"georust/polyline","owner":"georust","description":"Fast Google Encoded Polyline encoding \u0026 decoding in Rust","archived":false,"fork":false,"pushed_at":"2024-05-14T17:28:41.000Z","size":124,"stargazers_count":25,"open_issues_count":6,"forks_count":12,"subscribers_count":7,"default_branch":"main","last_synced_at":"2024-10-29T18:59:29.251Z","etag":null,"topics":["polyline","polyline-decoder","polyline-encoder"],"latest_commit_sha":null,"homepage":"https://crates.io/crates/polyline","language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/georust.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE-APACHE","code_of_conduct":"CODE_OF_CONDUCT.md","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":"2016-06-15T16:54:46.000Z","updated_at":"2024-10-22T13:34:44.000Z","dependencies_parsed_at":"2024-04-12T14:29:46.540Z","dependency_job_id":"a2871d5a-8525-4664-922c-8502158d8276","html_url":"https://github.com/georust/polyline","commit_stats":{"total_commits":97,"total_committers":14,"mean_commits":6.928571428571429,"dds":0.7525773195876289,"last_synced_commit":"add9d0f0cf0615136a72b8beb0512a505ea7902b"},"previous_names":["georust/rust-polyline"],"tags_count":10,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/georust%2Fpolyline","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/georust%2Fpolyline/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/georust%2Fpolyline/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/georust%2Fpolyline/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/georust","download_url":"https://codeload.github.com/georust/polyline/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":230311863,"owners_count":18206738,"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":["polyline","polyline-decoder","polyline-encoder"],"created_at":"2024-11-07T02:04:56.686Z","updated_at":"2024-12-19T17:08:23.915Z","avatar_url":"https://github.com/georust.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# polyline\n\n[![polyline](https://avatars1.githubusercontent.com/u/10320338?v=4\u0026s=50)](https://github.com/georust)\n\n[![polyline on Crates.io](https://img.shields.io/crates/v/polyline.svg?color=brightgreen)](https://crates.io/crates/polyline)\n[![Documentation](https://img.shields.io/docsrs/polyline/latest.svg)](https://docs.rs/polyline)\n[![Discord](https://img.shields.io/discord/598002550221963289)](https://discord.gg/Fp2aape)\n\nFast Google Encoded Polyline encoding \u0026 decoding in Rust.\n\n# Example\n```rust\nuse polyline;\nuse geo_types::line_string;\nlet coord = line_string![(x: -120.2, y: 38.5), (x: -120.95, y: 40.7), (x: -126.453, y: 43.252)];\nlet output = \"_p~iF~ps|U_ulLnnqC_mqNvxq`@\";\nlet result = polyline::encode_coordinates(coord, 5).unwrap();\nassert_eq!(result, output)\n```\n\n# A Note on Coordinate Order\n\nThis crate uses `Coord` and `LineString` types from the `geo-types` crate, which encodes coordinates in `(x, y)` / `(lon, lat)` order. The Polyline algorithm and its 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.\n\n[Documentation](https://docs.rs/polyline/)\n\n# FFI\nC-compatible FFI bindings for this crate are provided by the [polyline-ffi](https://crates.io/crates/polyline-ffi) crate.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgeorust%2Fpolyline","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgeorust%2Fpolyline","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgeorust%2Fpolyline/lists"}