Module geoadmin

Source
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§

ForwardLocationProperties
Forward Geocoding location attributes
GeoAdmin
An instance of the GeoAdmin geocoding service
GeoAdminForwardLocation
A forward geocoding location
GeoAdminForwardResponse
The top-level full JSON (GeoJSON Feature Collection) response returned by a forward-geocoding request
GeoAdminParams
An instance of a parameter builder for GeoAdmin geocoding
GeoAdminReverseLocation
A reverse geocoding result
GeoAdminReverseResponse
The top-level full JSON (GeoJSON FeatureCollection) response returned by a reverse-geocoding request
ReverseLocationAttributes
Reverse geocoding result attributes