8 stable releases (3 major)
4.1.1 | Mar 5, 2024 |
---|---|
4.0.0 | Nov 26, 2023 |
3.0.1 | Jul 12, 2022 |
3.0.0 | Mar 2, 2022 |
1.0.1 | Mar 29, 2020 |
#150 in Science
107 downloads per month
Used in geo2city
2MB
130 lines
reverse_geocoder
A fast, offline reverse geocoder.
lib.rs
:
A library for fast, offline reverse geocoding. The location data are from GeoNames.
Usage
use reverse_geocoder::{ReverseGeocoder, SearchResult};
fn main() {
let geocoder = ReverseGeocoder::new();
let coords = (40.7831, -73.9712);
let search_result = geocoder.search(coords);
println!("Distance {}", search_result.distance);
println!("Record {}", search_result.record);
}
Dependencies
~5–29MB
~431K SLoC