1 unstable release
0.1.0 | Oct 6, 2018 |
---|
#723 in Science
115 stars & 7 watchers
7KB
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
~432K SLoC