Module geocoding_async::openstreetmap

source ·
Expand description

The OpenStreetMap Nominatim provider.

Geocoding methods are implemented on the Openstreetmap struct. Please see the API documentation for details.

While OpenStreetMap’s Nominatim API is free, see the Nominatim Usage Policy for details on usage requirements, including a maximum of 1 request per second.

§Example

use geocoding_async::{Openstreetmap, Forward, Point};

let osm = Openstreetmap::new();
let address = "Schwabing, München";
let res = osm.forward(&address).await;
assert_eq!(res.unwrap(), vec![Point::new(11.5884858, 48.1700887)]);

Structs§