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

goenamedb entry

parsed country

Functions

calculate the great circle distance between two nvecs

calculate the dot product of two nvecs

search for closest records to target lat/long returns Option<distance, record>

search for closest record to target lat/long returns Option<distance, record>