Expand description
The GeoAdmin provider for geocoding in Switzerland exclusively.
Based on the Search API and Identify Features API
While GeoAdmin API is free, please respect their fair usage policy.
Example
use geocoding::{GeoAdmin, Forward, Point};
let geoadmin = GeoAdmin::new();
let address = "Seftigenstrasse 264, 3084 Wabern";
let res = geoadmin.forward(&address);
assert_eq!(res.unwrap(), vec![Point::new(7.451352119445801, 46.92793655395508)]);
Structs
Forward Geocoding location attributes
An instance of the GeoAdmin geocoding service
A forward geocoding location
The top-level full JSON (GeoJSON Feature Collection) response returned by a forward-geocoding request
An instance of a parameter builder for GeoAdmin geocoding
A reverse geocoding result
The top-level full JSON (GeoJSON FeatureCollection) response returned by a reverse-geocoding request
Reverse geocoding result attributes