Module 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::{Openstreetmap, Forward, Point};

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

Structs§

AddressDetails
Address details in the result object
Openstreetmap
An instance of the Openstreetmap geocoding service
OpenstreetmapParams
An instance of a parameter builder for Openstreetmap geocoding
OpenstreetmapResponse
The top-level full GeoJSON response returned by a forward-geocoding request
OpenstreetmapResult
A geocoding result
ResultGeometry
A geocoding result geometry
ResultProperties
Geocoding result properties