Module geocoding_async::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§