├── .gitignore ├── bors.toml ├── .github └── workflows │ └── rust.yml ├── Cargo.toml ├── LICENSE-MIT ├── README.md ├── src ├── errors.rs └── lib.rs ├── CHANGELOG.md ├── benches └── benchmarks.rs ├── CODE_OF_CONDUCT.md ├── LICENSE-APACHE └── resources └── route-geometry-sweden-west-coast.polyline6 /.gitignore: -------------------------------------------------------------------------------- 1 | target 2 | Cargo.lock 3 | -------------------------------------------------------------------------------- /bors.toml: -------------------------------------------------------------------------------- 1 | status = [ 2 | "build_and_test", 3 | ] 4 | -------------------------------------------------------------------------------- /.github/workflows/rust.yml: -------------------------------------------------------------------------------- 1 | name: Run Polyline tests 2 | 3 | on: 4 | push: 5 | branches: 6 | - main 7 | - staging 8 | - trying 9 | pull_request: 10 | merge_group: 11 | 12 | jobs: 13 | build_and_test: 14 | runs-on: ubuntu-latest 15 | steps: 16 | - uses: actions/checkout@v4 17 | - run: cargo install cargo-all-features 18 | - run: cargo build-all-features --verbose 19 | - run: cargo test-all-features --verbose 20 | -------------------------------------------------------------------------------- /Cargo.toml: -------------------------------------------------------------------------------- 1 | [package] 2 | name = "polyline" 3 | description = "Encoder and decoder for the Google Encoded Polyline format" 4 | version = "0.11.0" 5 | repository = "https://github.com/georust/polyline" 6 | documentation = "https://docs.rs/polyline/" 7 | readme = "README.md" 8 | keywords = ["polyline", "geo", "gis"] 9 | license = "MIT/Apache-2.0" 10 | edition = "2021" 11 | categories = ["science::geo"] 12 | 13 | [dependencies] 14 | geo-types = "0.7.8" 15 | 16 | [dev-dependencies] 17 | rand = "0.8.5" 18 | criterion = "0.5.1" 19 | flexpolyline = "0.1.0" 20 | 21 | [lib] 22 | bench = false 23 | 24 | [[bench]] 25 | name = "benchmarks" 26 | harness = false 27 | -------------------------------------------------------------------------------- /LICENSE-MIT: -------------------------------------------------------------------------------- 1 | Copyright (c) 2017 The GeoRust Project Developers 2 | 3 | Permission is hereby granted, free of charge, to any 4 | person obtaining a copy of this software and associated 5 | documentation files (the "Software"), to deal in the 6 | Software without restriction, including without 7 | limitation the rights to use, copy, modify, merge, 8 | publish, distribute, sublicense, and/or sell copies of 9 | the Software, and to permit persons to whom the Software 10 | is furnished to do so, subject to the following 11 | conditions: 12 | 13 | The above copyright notice and this permission notice 14 | shall be included in all copies or substantial portions 15 | of the Software. 16 | 17 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF 18 | ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED 19 | TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A 20 | PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT 21 | SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY 22 | CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION 23 | OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR 24 | IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER 25 | DEALINGS IN THE SOFTWARE. 26 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # polyline 2 | 3 | [![polyline](https://avatars1.githubusercontent.com/u/10320338?v=4&s=50)](https://github.com/georust) 4 | 5 | [![polyline on Crates.io](https://img.shields.io/crates/v/polyline.svg?color=brightgreen)](https://crates.io/crates/polyline) 6 | [![Documentation](https://img.shields.io/docsrs/polyline/latest.svg)](https://docs.rs/polyline) 7 | [![Discord](https://img.shields.io/discord/598002550221963289)](https://discord.gg/Fp2aape) 8 | 9 | Fast Google Encoded Polyline encoding & decoding in Rust. 10 | 11 | # Example 12 | ```rust 13 | use polyline; 14 | use geo_types::line_string; 15 | let coord = line_string![(x: -120.2, y: 38.5), (x: -120.95, y: 40.7), (x: -126.453, y: 43.252)]; 16 | let output = "_p~iF~ps|U_ulLnnqC_mqNvxq`@"; 17 | let result = polyline::encode_coordinates(coord, 5).unwrap(); 18 | assert_eq!(result, output) 19 | ``` 20 | 21 | # A Note on Coordinate Order 22 | 23 | This 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. 24 | 25 | [Documentation](https://docs.rs/polyline/) 26 | 27 | # FFI 28 | C-compatible FFI bindings for this crate are provided by the [polyline-ffi](https://crates.io/crates/polyline-ffi) crate. 29 | -------------------------------------------------------------------------------- /src/errors.rs: -------------------------------------------------------------------------------- 1 | //! Errors that can occur during encoding / decoding of Polylines 2 | 3 | use geo_types::Coord; 4 | 5 | #[derive(Debug, PartialEq, Clone)] 6 | #[non_exhaustive] 7 | pub enum PolylineError { 8 | LongitudeCoordError { 9 | /// The coordinate value that caused the error due to being outside the range `-180.0..180.0` 10 | coord: f64, 11 | /// The string index of the coordinate error 12 | idx: usize, 13 | }, 14 | LatitudeCoordError { 15 | /// The coordinate value that caused the error due to being outside the range `-90.0..90.0` 16 | coord: f64, 17 | /// The string index of the coordinate error 18 | idx: usize, 19 | }, 20 | NoLongError { 21 | /// The string index of the missing longitude 22 | idx: usize, 23 | }, 24 | DecodeError { 25 | /// The string index of the character that caused the decoding error 26 | idx: usize, 27 | }, 28 | EncodeToCharError, 29 | CoordEncodingError { 30 | coord: Coord, 31 | /// The array index of the coordinate error 32 | idx: usize, 33 | }, 34 | } 35 | 36 | impl std::error::Error for PolylineError {} 37 | impl std::fmt::Display for PolylineError { 38 | fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result { 39 | match self { 40 | PolylineError::LongitudeCoordError { coord, idx } => { 41 | write!(f, "longitude out of bounds: {} at position {}", coord, idx) 42 | } 43 | PolylineError::LatitudeCoordError { coord, idx } => { 44 | write!(f, "latitude out of bounds: {} at position {}", coord, idx) 45 | } 46 | PolylineError::DecodeError { idx } => { 47 | write!(f, "cannot decode character at index {}", idx) 48 | } 49 | PolylineError::NoLongError { idx } => { 50 | write!(f, "no longitude to go with latitude at index: {}", idx) 51 | } 52 | PolylineError::EncodeToCharError => write!(f, "couldn't encode character"), 53 | PolylineError::CoordEncodingError { coord, idx } => { 54 | write!( 55 | f, 56 | "the coordinate {:?} at index: {} could not be encoded", 57 | coord, idx 58 | ) 59 | } 60 | } 61 | } 62 | } 63 | -------------------------------------------------------------------------------- /CHANGELOG.md: -------------------------------------------------------------------------------- 1 | # Changelog 2 | 3 | ## Unreleased 4 | 5 | * Derive `Clone` for `PolyLineError` 6 | * https://github.com/georust/polyline/pull/54 7 | 8 | ## 0.11.0 9 | 10 | * Speed up encode function (now runs in ~72% less time / 3.5x improvement): 11 | * https://github.com/georust/polyline/pull/42 12 | * BREAKING: Return typed errors rather than String 13 | * Performance improvements 14 | * https://github.com/georust/polyline/pull/48 15 | * https://github.com/georust/polyline/pull/50 16 | * Update to 2021 edition, README, metadata and dependency updates 17 | * https://github.com/georust/polyline/pull/51 18 | 19 | ## 0.10.2 20 | 21 | * fix decoder crashing with out-of-bounds error (https://github.com/georust/polyline/pull/37): 22 | * protect against invalid polylines 23 | * protect against potential overflow when shifting 24 | * performance hit: 10-12% 25 | 26 | ## 0.10.1 27 | 28 | * Fix dependencies to officially drop geo-types 0.6 - it was already 29 | effectively dropped with the bump to 0.10.0 (it wouldn't compile), so this 30 | isn't an additionally breaking change. 31 | 32 | ## 0.10.0 33 | 34 | * Update Coordinates to Coord due to geo-types change 35 | * This is a BREAKING change for geo-types 0.6 users 36 | * Apply clippy suggestions 37 | * Update dependencies 38 | * Refactor decoding logic for perf improvement (https://github.com/georust/polyline/pull/28) 39 | 40 | ## 0.9.0 41 | * Update `geo-types` dependency to allow for 0.6 or 0.7 42 | * Switch CI to Github actions 43 | 44 | ## 0.8.0 45 | * Bump geo-types dependency to 0.6 46 | 47 | ## 0.7.3 48 | * Add note on coordinate order 49 | 50 | ## 0.7.1 51 | * Bump `geo-types` to [0.5](https://github.com/georust/polyline/pull/21) 52 | 53 | ## 0.7.0 54 | 55 | * [Relicense to MIT / Apache v2](https://github.com/georust/polyline/pull/18) 56 | 57 | ## 0.6.0 58 | 59 | * [Mark `rand` as a dev-dependency.](https://github.com/georust/polyline/pull/12) 60 | * [Switch to criterion to enable stable benchmarks](https://github.com/georust/polyline/pull/15) 61 | 62 | ## 0.5.0 63 | 64 | * [`decode_polyline()` now accepts a string slice instead of a `String`](https://github.com/georust/polyline/pull/10). 65 | 66 | ## 0.4.0 67 | 68 | * Now accepts either a slice or a vec as argument to encode_polyline. 69 | 70 | ## 0.3.0 71 | 72 | * [Now tests for invalid coordinates in decoded strings](https://github.com/georust/polyline/pull/4) 73 | 74 | ## 0.2.0 75 | 76 | * [Basic error handling for en– and decoding](https://github.com/tmcw/polyline/pull/3): rust-polyline 77 | now returns a `Result` object, allowing it to handle incorrectly 78 | encoded polylines. 79 | -------------------------------------------------------------------------------- /benches/benchmarks.rs: -------------------------------------------------------------------------------- 1 | #[macro_use] 2 | extern crate criterion; 3 | use criterion::{black_box, Criterion}; 4 | use geo_types::Coord; 5 | use polyline::{decode_polyline, encode_coordinates}; 6 | use rand::distributions::Distribution; 7 | use rand::distributions::Uniform; 8 | use rand::rngs::StdRng; 9 | use rand::SeedableRng; 10 | 11 | fn build_coords() -> Vec { 12 | let mut rng = StdRng::seed_from_u64(42); 13 | // These coordinates cover London, approximately 14 | let between_lon = Uniform::from(-6.379880..1.768960); 15 | let between_lat = Uniform::from(49.871159..55.811741); 16 | (0..10_000) 17 | .map(|_| Coord { 18 | x: between_lon.sample(&mut rng), 19 | y: between_lat.sample(&mut rng), 20 | }) 21 | .collect() 22 | } 23 | 24 | fn build_flexpolyline(coords: &[Coord], precision: flexpolyline::Precision) -> flexpolyline::Polyline { 25 | let coords = coords.iter().map(|c| (c.x, c.y)); 26 | flexpolyline::Polyline::Data2d { 27 | coordinates: coords.collect(), 28 | precision2d: precision, 29 | } 30 | } 31 | 32 | #[allow(unused_must_use)] 33 | fn bench_encode(c: &mut Criterion) { 34 | let coords = build_coords(); 35 | c.bench_function("encode 10_000 coordinates at precision 1e-5", |b| { 36 | b.iter(|| { 37 | black_box(encode_coordinates(coords.iter().copied(), 5).unwrap()); 38 | }) 39 | }); 40 | 41 | c.bench_function("encode 10_000 coordinates at precision 1e-6", |b| { 42 | b.iter(|| { 43 | black_box(encode_coordinates(coords.iter().copied(), 6).unwrap()); 44 | }) 45 | }); 46 | 47 | // This is just to compare us to another popular library. The format isn't identical so we 48 | // don't expet performance to be identical, but it's some kind of touchstone. 49 | // At time of commit, flexpolyline was ~20% slower at encoding than this crate. 50 | c.bench_function("encode 10_000 coordinates at precision 1e-5 (flexpolyline)", |b| { 51 | let pl = build_flexpolyline(&coords, flexpolyline::Precision::Digits5); 52 | b.iter(|| { 53 | black_box(pl.encode().unwrap()); 54 | }) 55 | }); 56 | } 57 | 58 | #[allow(unused_must_use)] 59 | fn bench_decode(c: &mut Criterion) { 60 | let coords = build_coords(); 61 | c.bench_function("decode 10_000 coordinates at precision 1e-5", |b| { 62 | let encoded = encode_coordinates(coords.iter().copied(), 5).unwrap(); 63 | b.iter(|| { 64 | black_box(decode_polyline(&encoded, 5).unwrap()); 65 | }) 66 | }); 67 | 68 | c.bench_function("decode 10_000 coordinates at precision 1e-6", |b| { 69 | let encoded = encode_coordinates(coords.iter().copied(), 6).unwrap(); 70 | b.iter(|| { 71 | black_box(decode_polyline(&encoded, 6).unwrap()); 72 | }) 73 | }); 74 | 75 | // This is just to compare us to another popular library. The format isn't identical so we 76 | // don't expet performance to be identical, but it's some kind of touchstone. 77 | // At time of commit, flexpolyline was ~12% slower at decoding than this crate. 78 | c.bench_function("decode 10_000 coordinates at precision 1e-5 (flexpolyline)", |b| { 79 | let encoded = build_flexpolyline(&coords, flexpolyline::Precision::Digits5).encode().unwrap(); 80 | b.iter(|| { 81 | black_box(flexpolyline::Polyline::decode(&encoded).unwrap()); 82 | }) 83 | }); 84 | } 85 | 86 | criterion_group!(benches, bench_encode, bench_decode,); 87 | criterion_main!(benches); 88 | -------------------------------------------------------------------------------- /CODE_OF_CONDUCT.md: -------------------------------------------------------------------------------- 1 | # The GeoRust Code of Conduct 2 | 3 | This document is based on, and aims to track the [Rust Code of Conduct](https://www.rust-lang.org/conduct.html) 4 | 5 | ## Conduct 6 | 7 | **Contact**: [mods@georust.org](mailto:mods@georust.org) 8 | 9 | * We are committed to providing a friendly, safe and welcoming environment for all, regardless of level of experience, gender identity and expression, sexual orientation, disability, personal appearance, body size, race, ethnicity, age, religion, nationality, or other similar characteristic. 10 | * On IRC, please avoid using overtly sexual nicknames or other nicknames that might detract from a friendly, safe and welcoming environment for all. 11 | * Please be kind and courteous. There's no need to be mean or rude. 12 | * Respect that people have differences of opinion and that every design or implementation choice carries a trade-off and numerous costs. There is seldom a right answer. 13 | * Please keep unstructured critique to a minimum. If you have solid ideas you want to experiment with, make a fork and see how it works. 14 | * We will exclude you from interaction if you insult, demean or harass anyone. That is not welcome behavior. We interpret the term "harassment" as including the definition in the Citizen Code of Conduct; if you have any lack of clarity about what might be included in that concept, please read their definition. In particular, we don't tolerate behavior that excludes people in socially marginalized groups. 15 | * Private harassment is also unacceptable. No matter who you are, if you feel you have been or are being harassed or made uncomfortable by a community member, please contact one of the channel ops or any of the [GeoRust moderation team][mod_team] immediately. Whether you're a regular contributor or a newcomer, we care about making this community a safe place for you and we've got your back. 16 | * Likewise any spamming, trolling, flaming, baiting or other attention-stealing behavior is not welcome. 17 | 18 | ## Moderation 19 | 20 | 21 | These are the policies for upholding our community's standards of conduct. If you feel that a thread needs moderation, please contact the [GeoRust moderation team][mod_team]. 22 | 23 | 1. Remarks that violate the Rust standards of conduct, including hateful, hurtful, oppressive, or exclusionary remarks, are not allowed. (Cursing is allowed, but never targeting another user, and never in a hateful manner.) 24 | 2. Remarks that moderators find inappropriate, whether listed in the code of conduct or not, are also not allowed. 25 | 3. Moderators will first respond to such remarks with a warning. 26 | 4. If the warning is unheeded, the user will be "kicked," i.e., kicked out of the communication channel to cool off. 27 | 5. If the user comes back and continues to make trouble, they will be banned, i.e., indefinitely excluded. 28 | 6. Moderators may choose at their discretion to un-ban the user if it was a first offense and they offer the offended party a genuine apology. 29 | 7. If a moderator bans someone and you think it was unjustified, please take it up with that moderator, or with a different moderator, **in private**. Complaints about bans in-channel are not allowed. 30 | 8. Moderators are held to a higher standard than other community members. If a moderator creates an inappropriate situation, they should expect less leeway than others. 31 | 32 | In the GeoRust community we strive to go the extra step to look out for each other. Don't just aim to be technically unimpeachable, try to be your best self. In particular, avoid flirting with offensive or sensitive issues, particularly if they're off-topic; this all too often leads to unnecessary fights, hurt feelings, and damaged trust; worse, it can drive people away from the community entirely. 33 | 34 | And if someone takes issue with something you said or did, resist the urge to be defensive. Just stop doing what it was they complained about and apologize. Even if you feel you were misinterpreted or unfairly accused, chances are good there was something you could've communicated better — remember that it's your responsibility to make your fellow Rustaceans comfortable. Everyone wants to get along and we are all here first and foremost because we want to talk about cool technology. You will find that people will be eager to assume good intent and forgive as long as you earn their trust. 35 | 36 | *Adapted from the [Node.js Policy on Trolling](http://blog.izs.me/post/30036893703/policy-on-trolling) as well as the [Contributor Covenant v1.3.0](https://www.contributor-covenant.org/version/1/3/0/).* 37 | 38 | [mod_team]: mailto:mods@georust.org 39 | -------------------------------------------------------------------------------- /LICENSE-APACHE: -------------------------------------------------------------------------------- 1 | Apache License 2 | Version 2.0, January 2004 3 | http://www.apache.org/licenses/ 4 | 5 | TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION 6 | 7 | 1. Definitions. 8 | 9 | "License" shall mean the terms and conditions for use, reproduction, 10 | and distribution as defined by Sections 1 through 9 of this document. 11 | 12 | "Licensor" shall mean the copyright owner or entity authorized by 13 | the copyright owner that is granting the License. 14 | 15 | "Legal Entity" shall mean the union of the acting entity and all 16 | other entities that control, are controlled by, or are under common 17 | control with that entity. For the purposes of this definition, 18 | "control" means (i) the power, direct or indirect, to cause the 19 | direction or management of such entity, whether by contract or 20 | otherwise, or (ii) ownership of fifty percent (50%) or more of the 21 | outstanding shares, or (iii) beneficial ownership of such entity. 22 | 23 | "You" (or "Your") shall mean an individual or Legal Entity 24 | exercising permissions granted by this License. 25 | 26 | "Source" form shall mean the preferred form for making modifications, 27 | including but not limited to software source code, documentation 28 | source, and configuration files. 29 | 30 | "Object" form shall mean any form resulting from mechanical 31 | transformation or translation of a Source form, including but 32 | not limited to compiled object code, generated documentation, 33 | and conversions to other media types. 34 | 35 | "Work" shall mean the work of authorship, whether in Source or 36 | Object form, made available under the License, as indicated by a 37 | copyright notice that is included in or attached to the work 38 | (an example is provided in the Appendix below). 39 | 40 | "Derivative Works" shall mean any work, whether in Source or Object 41 | form, that is based on (or derived from) the Work and for which the 42 | editorial revisions, annotations, elaborations, or other modifications 43 | represent, as a whole, an original work of authorship. For the purposes 44 | of this License, Derivative Works shall not include works that remain 45 | separable from, or merely link (or bind by name) to the interfaces of, 46 | the Work and Derivative Works thereof. 47 | 48 | "Contribution" shall mean any work of authorship, including 49 | the original version of the Work and any modifications or additions 50 | to that Work or Derivative Works thereof, that is intentionally 51 | submitted to Licensor for inclusion in the Work by the copyright owner 52 | or by an individual or Legal Entity authorized to submit on behalf of 53 | the copyright owner. For the purposes of this definition, "submitted" 54 | means any form of electronic, verbal, or written communication sent 55 | to the Licensor or its representatives, including but not limited to 56 | communication on electronic mailing lists, source code control systems, 57 | and issue tracking systems that are managed by, or on behalf of, the 58 | Licensor for the purpose of discussing and improving the Work, but 59 | excluding communication that is conspicuously marked or otherwise 60 | designated in writing by the copyright owner as "Not a Contribution." 61 | 62 | "Contributor" shall mean Licensor and any individual or Legal Entity 63 | on behalf of whom a Contribution has been received by Licensor and 64 | subsequently incorporated within the Work. 65 | 66 | 2. Grant of Copyright License. Subject to the terms and conditions of 67 | this License, each Contributor hereby grants to You a perpetual, 68 | worldwide, non-exclusive, no-charge, royalty-free, irrevocable 69 | copyright license to reproduce, prepare Derivative Works of, 70 | publicly display, publicly perform, sublicense, and distribute the 71 | Work and such Derivative Works in Source or Object form. 72 | 73 | 3. Grant of Patent License. Subject to the terms and conditions of 74 | this License, each Contributor hereby grants to You a perpetual, 75 | worldwide, non-exclusive, no-charge, royalty-free, irrevocable 76 | (except as stated in this section) patent license to make, have made, 77 | use, offer to sell, sell, import, and otherwise transfer the Work, 78 | where such license applies only to those patent claims licensable 79 | by such Contributor that are necessarily infringed by their 80 | Contribution(s) alone or by combination of their Contribution(s) 81 | with the Work to which such Contribution(s) was submitted. If You 82 | institute patent litigation against any entity (including a 83 | cross-claim or counterclaim in a lawsuit) alleging that the Work 84 | or a Contribution incorporated within the Work constitutes direct 85 | or contributory patent infringement, then any patent licenses 86 | granted to You under this License for that Work shall terminate 87 | as of the date such litigation is filed. 88 | 89 | 4. Redistribution. You may reproduce and distribute copies of the 90 | Work or Derivative Works thereof in any medium, with or without 91 | modifications, and in Source or Object form, provided that You 92 | meet the following conditions: 93 | 94 | (a) You must give any other recipients of the Work or 95 | Derivative Works a copy of this License; and 96 | 97 | (b) You must cause any modified files to carry prominent notices 98 | stating that You changed the files; and 99 | 100 | (c) You must retain, in the Source form of any Derivative Works 101 | that You distribute, all copyright, patent, trademark, and 102 | attribution notices from the Source form of the Work, 103 | excluding those notices that do not pertain to any part of 104 | the Derivative Works; and 105 | 106 | (d) If the Work includes a "NOTICE" text file as part of its 107 | distribution, then any Derivative Works that You distribute must 108 | include a readable copy of the attribution notices contained 109 | within such NOTICE file, excluding those notices that do not 110 | pertain to any part of the Derivative Works, in at least one 111 | of the following places: within a NOTICE text file distributed 112 | as part of the Derivative Works; within the Source form or 113 | documentation, if provided along with the Derivative Works; or, 114 | within a display generated by the Derivative Works, if and 115 | wherever such third-party notices normally appear. The contents 116 | of the NOTICE file are for informational purposes only and 117 | do not modify the License. You may add Your own attribution 118 | notices within Derivative Works that You distribute, alongside 119 | or as an addendum to the NOTICE text from the Work, provided 120 | that such additional attribution notices cannot be construed 121 | as modifying the License. 122 | 123 | You may add Your own copyright statement to Your modifications and 124 | may provide additional or different license terms and conditions 125 | for use, reproduction, or distribution of Your modifications, or 126 | for any such Derivative Works as a whole, provided Your use, 127 | reproduction, and distribution of the Work otherwise complies with 128 | the conditions stated in this License. 129 | 130 | 5. Submission of Contributions. Unless You explicitly state otherwise, 131 | any Contribution intentionally submitted for inclusion in the Work 132 | by You to the Licensor shall be under the terms and conditions of 133 | this License, without any additional terms or conditions. 134 | Notwithstanding the above, nothing herein shall supersede or modify 135 | the terms of any separate license agreement you may have executed 136 | with Licensor regarding such Contributions. 137 | 138 | 6. Trademarks. This License does not grant permission to use the trade 139 | names, trademarks, service marks, or product names of the Licensor, 140 | except as required for reasonable and customary use in describing the 141 | origin of the Work and reproducing the content of the NOTICE file. 142 | 143 | 7. Disclaimer of Warranty. Unless required by applicable law or 144 | agreed to in writing, Licensor provides the Work (and each 145 | Contributor provides its Contributions) on an "AS IS" BASIS, 146 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or 147 | implied, including, without limitation, any warranties or conditions 148 | of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A 149 | PARTICULAR PURPOSE. You are solely responsible for determining the 150 | appropriateness of using or redistributing the Work and assume any 151 | risks associated with Your exercise of permissions under this License. 152 | 153 | 8. Limitation of Liability. In no event and under no legal theory, 154 | whether in tort (including negligence), contract, or otherwise, 155 | unless required by applicable law (such as deliberate and grossly 156 | negligent acts) or agreed to in writing, shall any Contributor be 157 | liable to You for damages, including any direct, indirect, special, 158 | incidental, or consequential damages of any character arising as a 159 | result of this License or out of the use or inability to use the 160 | Work (including but not limited to damages for loss of goodwill, 161 | work stoppage, computer failure or malfunction, or any and all 162 | other commercial damages or losses), even if such Contributor 163 | has been advised of the possibility of such damages. 164 | 165 | 9. Accepting Warranty or Additional Liability. While redistributing 166 | the Work or Derivative Works thereof, You may choose to offer, 167 | and charge a fee for, acceptance of support, warranty, indemnity, 168 | or other liability obligations and/or rights consistent with this 169 | License. However, in accepting such obligations, You may act only 170 | on Your own behalf and on Your sole responsibility, not on behalf 171 | of any other Contributor, and only if You agree to indemnify, 172 | defend, and hold each Contributor harmless for any liability 173 | incurred by, or claims asserted against, such Contributor by reason 174 | of your accepting any such warranty or additional liability. 175 | 176 | END OF TERMS AND CONDITIONS 177 | 178 | APPENDIX: How to apply the Apache License to your work. 179 | 180 | To apply the Apache License to your work, attach the following 181 | boilerplate notice, with the fields enclosed by brackets "[]" 182 | replaced with your own identifying information. (Don't include 183 | the brackets!) The text should be enclosed in the appropriate 184 | comment syntax for the file format. We also recommend that a 185 | file or class name and description of purpose be included on the 186 | same "printed page" as the copyright notice for easier 187 | identification within third-party archives. 188 | 189 | Copyright [yyyy] [name of copyright owner] 190 | 191 | Licensed under the Apache License, Version 2.0 (the "License"); 192 | you may not use this file except in compliance with the License. 193 | You may obtain a copy of the License at 194 | 195 | http://www.apache.org/licenses/LICENSE-2.0 196 | 197 | Unless required by applicable law or agreed to in writing, software 198 | distributed under the License is distributed on an "AS IS" BASIS, 199 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 200 | See the License for the specific language governing permissions and 201 | limitations under the License. 202 | -------------------------------------------------------------------------------- /src/lib.rs: -------------------------------------------------------------------------------- 1 | //! # Google Encoded Polyline encoding & decoding in Rust 2 | //! 3 | //! [Polyline](https://developers.google.com/maps/documentation/utilities/polylinealgorithm) 4 | //! is a lossy compression algorithm that allows you to store a series of coordinates as a 5 | //! single string. 6 | //! 7 | //! # Example 8 | //! 9 | //! ``` 10 | //! use polyline; 11 | //! use geo_types::line_string; 12 | //! 13 | //! let coord = line_string![(x: -120.2, y: 38.5), (x: -120.95, y: 40.7), (x: -126.453, y: 43.252)]; 14 | //! let output = "_p~iF~ps|U_ulLnnqC_mqNvxq`@"; 15 | //! let result = polyline::encode_coordinates(coord, 5).unwrap(); 16 | //! assert_eq!(result, output) 17 | //! ``` 18 | //! 19 | //!# A Note on Coordinate Order 20 | //! 21 | //! This crate uses `Coordinate` and `LineString` types from the `geo-types` crate, which encodes coordinates 22 | //! in `(x, y)` order. The Polyline algorithm and first-party documentation assumes the _opposite_ coordinate order. 23 | //! It is thus advisable to pay careful attention to the order of the coordinates you use for encoding and decoding. 24 | 25 | pub mod errors; 26 | use errors::PolylineError; 27 | 28 | use geo_types::{Coord, LineString}; 29 | use std::char; 30 | use std::iter::{Enumerate, Peekable}; 31 | 32 | const MIN_LONGITUDE: f64 = -180.0; 33 | const MAX_LONGITUDE: f64 = 180.0; 34 | const MIN_LATITUDE: f64 = -90.0; 35 | const MAX_LATITUDE: f64 = 90.0; 36 | 37 | fn scale(n: f64, factor: i32) -> i64 { 38 | let scaled = n * (f64::from(factor)); 39 | scaled.round() as i64 40 | } 41 | 42 | #[inline(always)] 43 | fn encode(delta: i64, output: &mut String) -> Result<(), PolylineError> { 44 | let mut value = delta << 1; 45 | if value < 0 { 46 | value = !value; 47 | } 48 | while value >= 0x20 { 49 | let from_char = char::from_u32(((0x20 | (value & 0x1f)) + 63) as u32) 50 | .ok_or(PolylineError::EncodeToCharError)?; 51 | output.push(from_char); 52 | value >>= 5; 53 | } 54 | let from_char = char::from_u32((value + 63) as u32).ok_or(PolylineError::EncodeToCharError)?; 55 | output.push(from_char); 56 | Ok(()) 57 | } 58 | 59 | /// Encodes a Google Encoded Polyline. 60 | /// 61 | /// # Examples 62 | /// 63 | /// ``` 64 | /// use polyline; 65 | /// use geo_types::line_string; 66 | /// 67 | /// let coords = line_string![(x: 2.0, y: 1.0), (x: 4.0, y: 3.0)]; 68 | /// let encoded_vec = polyline::encode_coordinates(coords, 5).unwrap(); 69 | /// ``` 70 | pub fn encode_coordinates(coordinates: C, precision: u32) -> Result 71 | where 72 | C: IntoIterator>, 73 | { 74 | let base: i32 = 10; 75 | let factor: i32 = base.pow(precision); 76 | 77 | let mut output = String::new(); 78 | let mut previous = Coord { x: 0, y: 0 }; 79 | 80 | for (i, next) in coordinates.into_iter().enumerate() { 81 | if !(MIN_LATITUDE..=MAX_LATITUDE).contains(&next.y) { 82 | return Err(PolylineError::LatitudeCoordError { 83 | coord: next.y, 84 | idx: i, 85 | }); 86 | } 87 | if !(MIN_LONGITUDE..=MAX_LONGITUDE).contains(&next.x) { 88 | return Err(PolylineError::LongitudeCoordError { 89 | coord: next.x, 90 | idx: i, 91 | }); 92 | } 93 | 94 | let scaled_next = Coord { 95 | x: scale(next.x, factor), 96 | y: scale(next.y, factor), 97 | }; 98 | encode(scaled_next.y - previous.y, &mut output).map_err(|_| { 99 | PolylineError::CoordEncodingError { 100 | coord: next, 101 | idx: i, 102 | } 103 | })?; 104 | encode(scaled_next.x - previous.x, &mut output).map_err(|_| { 105 | PolylineError::CoordEncodingError { 106 | coord: next, 107 | idx: i, 108 | } 109 | })?; 110 | previous = scaled_next; 111 | } 112 | Ok(output) 113 | } 114 | 115 | /// Decodes a Google Encoded Polyline. 116 | /// 117 | /// Returns an error if the polyline is invalid or if the decoded coordinates are out of bounds. 118 | /// 119 | /// # Examples 120 | /// 121 | /// ``` 122 | /// use polyline; 123 | /// 124 | /// let decoded_polyline = polyline::decode_polyline(&"_p~iF~ps|U_ulLnnqC_mqNvxq`@", 5); 125 | /// ``` 126 | pub fn decode_polyline(polyline: &str, precision: u32) -> Result, PolylineError> { 127 | let mut scaled_lat: i64 = 0; 128 | let mut scaled_lon: i64 = 0; 129 | let mut coordinates = vec![]; 130 | let base: i32 = 10; 131 | let factor = i64::from(base.pow(precision)); 132 | 133 | let mut chars = polyline.as_bytes().iter().copied().enumerate().peekable(); 134 | 135 | while let Some((lat_start, _)) = chars.peek().copied() { 136 | let latitude_change = decode_next(&mut chars)?; 137 | scaled_lat += latitude_change; 138 | let lat = scaled_lat as f64 / factor as f64; 139 | if !(MIN_LATITUDE..=MAX_LATITUDE).contains(&lat) { 140 | return Err(PolylineError::LatitudeCoordError { 141 | coord: lat, 142 | idx: lat_start, 143 | }); 144 | } 145 | 146 | let Some((lon_start, _)) = chars.peek().copied() else { 147 | return Err(PolylineError::NoLongError { idx: lat_start }); 148 | }; 149 | let longitude_change = decode_next(&mut chars)?; 150 | scaled_lon += longitude_change; 151 | let lon = scaled_lon as f64 / factor as f64; 152 | if !(MIN_LONGITUDE..=MAX_LONGITUDE).contains(&lon) { 153 | return Err(PolylineError::LongitudeCoordError { 154 | coord: lon, 155 | idx: lon_start, 156 | }); 157 | } 158 | 159 | coordinates.push(Coord { x: lon, y: lat }); 160 | } 161 | 162 | Ok(LineString::new(coordinates)) 163 | } 164 | 165 | fn decode_next( 166 | chars: &mut Peekable>>, 167 | ) -> Result { 168 | let mut shift = 0; 169 | let mut result = 0; 170 | for (idx, mut byte) in chars.by_ref() { 171 | if byte < 63 || (shift > 64 - 5) { 172 | return Err(PolylineError::DecodeError { idx }); 173 | } 174 | byte -= 63; 175 | result |= ((byte & 0x1f) as u64) << shift; 176 | shift += 5; 177 | if byte < 0x20 { 178 | break; 179 | } 180 | } 181 | 182 | let coordinate_change = if (result & 1) > 0 { 183 | !(result >> 1) 184 | } else { 185 | result >> 1 186 | } as i64; 187 | Ok(coordinate_change) 188 | } 189 | 190 | #[cfg(test)] 191 | mod tests { 192 | 193 | use super::decode_polyline; 194 | use super::encode_coordinates; 195 | use geo_types::LineString; 196 | 197 | struct TestCase { 198 | input: LineString, 199 | output: &'static str, 200 | } 201 | 202 | #[test] 203 | fn precision5() { 204 | let test_cases = vec![ 205 | TestCase { 206 | input: vec![[2.0, 1.0], [4.0, 3.0]].into(), 207 | output: "_ibE_seK_seK_seK", 208 | }, 209 | TestCase { 210 | input: vec![[-120.2, 38.5], [-120.95, 40.7], [-126.453, 43.252]].into(), 211 | output: "_p~iF~ps|U_ulLnnqC_mqNvxq`@", 212 | }, 213 | ]; 214 | for test_case in test_cases { 215 | assert_eq!( 216 | encode_coordinates(test_case.input.clone(), 5).unwrap(), 217 | test_case.output 218 | ); 219 | assert_eq!( 220 | decode_polyline(test_case.output, 5).unwrap(), 221 | test_case.input 222 | ); 223 | } 224 | } 225 | 226 | #[test] 227 | fn precision6() { 228 | let test_cases = vec![ 229 | TestCase { 230 | input: vec![[2.0, 1.0], [4.0, 3.0]].into(), 231 | output: "_c`|@_gayB_gayB_gayB", 232 | }, 233 | TestCase { 234 | input: vec![[-120.2, 38.5], [-120.95, 40.7], [-126.453, 43.252]].into(), 235 | output: "_izlhA~rlgdF_{geC~ywl@_kwzCn`{nI", 236 | }, 237 | ]; 238 | for test_case in test_cases { 239 | assert_eq!( 240 | encode_coordinates(test_case.input.clone(), 6).unwrap(), 241 | test_case.output 242 | ); 243 | assert_eq!( 244 | decode_polyline(test_case.output, 6).unwrap(), 245 | test_case.input 246 | ); 247 | } 248 | } 249 | 250 | #[test] 251 | // coordinates close to each other (below precision) should work 252 | fn rounding_error() { 253 | let poly = "cr_iI}co{@?dB"; 254 | let res: LineString = vec![[9.9131118, 54.0702648], [9.9126013, 54.0702578]].into(); 255 | assert_eq!(encode_coordinates(res, 5).unwrap(), poly); 256 | assert_eq!( 257 | decode_polyline(poly, 5).unwrap(), 258 | vec![[9.91311, 54.07026], [9.91260, 54.07026]].into() 259 | ); 260 | } 261 | 262 | #[test] 263 | fn broken_string() { 264 | let s = "_p~iF~ps|U_u🗑lLnnqC_mqNvxq`@"; 265 | let err = decode_polyline(s, 5).unwrap_err(); 266 | match err { 267 | crate::errors::PolylineError::LatitudeCoordError { coord, idx } => { 268 | assert_eq!(coord, 2306360.53104); 269 | assert_eq!(idx, 10); 270 | } 271 | _ => panic!("Got wrong error"), 272 | } 273 | } 274 | 275 | #[test] 276 | fn invalid_string() { 277 | let s = "invalid_polyline_that_should_be_handled_gracefully"; 278 | let err = decode_polyline(s, 5).unwrap_err(); 279 | match err { 280 | crate::errors::PolylineError::DecodeError { idx } => assert_eq!(idx, 12), 281 | _ => panic!("Got wrong error"), 282 | } 283 | } 284 | 285 | #[test] 286 | fn another_invalid_string() { 287 | let s = "ugh_ugh"; 288 | let err = decode_polyline(s, 5).unwrap_err(); 289 | match err { 290 | crate::errors::PolylineError::LatitudeCoordError { coord, idx } => { 291 | assert_eq!(coord, 49775.95019); 292 | assert_eq!(idx, 0); 293 | } 294 | _ => panic!("Got wrong error"), 295 | } 296 | } 297 | 298 | #[test] 299 | fn bad_coords() { 300 | // Can't have a latitude > 90.0 301 | let res: LineString = 302 | vec![[-120.2, 38.5], [-120.95, 40.7], [-126.453, 430.252]].into(); 303 | let err = encode_coordinates(res, 5).unwrap_err(); 304 | match err { 305 | crate::errors::PolylineError::LatitudeCoordError { coord, idx } => { 306 | assert_eq!(coord, 430.252); 307 | assert_eq!(idx, 2); 308 | } 309 | _ => panic!("Got wrong error"), 310 | } 311 | } 312 | 313 | #[test] 314 | fn should_not_trigger_overflow() { 315 | decode_polyline( 316 | include_str!("../resources/route-geometry-sweden-west-coast.polyline6"), 317 | 6, 318 | ) 319 | .unwrap(); 320 | } 321 | 322 | #[test] 323 | fn limits() { 324 | let res: LineString = vec![[-180.0, -90.0], [180.0, 90.0], [0.0, 0.0]].into(); 325 | let polyline = "~fdtjD~niivI_oiivI__tsmT~fdtjD~niivI"; 326 | assert_eq!( 327 | encode_coordinates(res.coords().copied(), 6).unwrap(), 328 | polyline 329 | ); 330 | assert_eq!(decode_polyline(polyline, 6).unwrap(), res); 331 | } 332 | 333 | #[test] 334 | fn truncated() { 335 | let input = LineString::from(vec![[2.0, 1.0], [4.0, 3.0]]); 336 | let polyline = "_ibE_seK_seK_seK"; 337 | assert_eq!( 338 | encode_coordinates(input.coords().copied(), 5).unwrap(), 339 | polyline 340 | ); 341 | assert_eq!(decode_polyline(polyline, 5).unwrap(), input); 342 | 343 | let truncated_polyline = "_ibE_seK_seK"; 344 | let err = decode_polyline(truncated_polyline, 5).unwrap_err(); 345 | match err { 346 | crate::errors::PolylineError::NoLongError { idx } => { 347 | assert_eq!(idx, 8); 348 | } 349 | _ => panic!("Got wrong error"), 350 | } 351 | } 352 | } 353 | -------------------------------------------------------------------------------- /resources/route-geometry-sweden-west-coast.polyline6: -------------------------------------------------------------------------------- 1 | uvdtnBk|h`UN_Sn@_^jAyTbAuJ~@yN\qNiBub@cEy^kBw^bBmMxm@asAxE_NlFi[zCoVlGed@xDsYZwHI}PMkJFsKZaL|@qKpBkC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