Crate rgeo

Source
Expand description

§rgeo

Rust library for reverse geocoding. Uses data from the geonames database. http://www.geonames.org/

Usage:

extern crate rgeo;
use rgeo::search;

search(44.353339_f32, -72.740231_f32);
// Some((0.0001186200820000013, Record { name: "Village of Waterbury", latitude: 44.34279, longitude: -72.74294, country: "US" }))

Modules§

country
goenamedb entry
record
parsed country

Functions§

distance
calculate the great circle distance between two nvecs
dot
calculate the dot product of two nvecs
nearest
search for closest records to target lat/long returns Option<distance, record>
search
search for closest record to target lat/long returns Option<distance, record>