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_async::{GeoAdmin, Forward, Point};
let geoadmin = GeoAdmin::new();
let address = "Seftigenstrasse 264, 3084 Wabern";
let res = geoadmin.forward(&address).await;
assert_eq!(res.unwrap(), vec![Point::new(7.451352119445801, 46.92793655395508)]);
Structs§
- Forward
Location Properties - Forward Geocoding location attributes
- GeoAdmin
- An instance of the GeoAdmin geocoding service
- GeoAdmin
Forward Location - A forward geocoding location
- GeoAdmin
Forward Response - The top-level full JSON (GeoJSON Feature Collection) response returned by a forward-geocoding request
- GeoAdmin
Params - An instance of a parameter builder for GeoAdmin geocoding
- GeoAdmin
Reverse Location - A reverse geocoding result
- GeoAdmin
Reverse Response - The top-level full JSON (GeoJSON FeatureCollection) response returned by a reverse-geocoding request
- Reverse
Location Attributes - Reverse geocoding result attributes