Skip to main content

Crate nomi4m

Crate nomi4m 

Source
Expand description

A nominatim client.

For a quick getting started guide, try something like this.

Please respect the Nominatim usage policy if you are going to use the server running at https://nominatim.openstreetmap.org. Otherwise, see installation instructions to run on your own hardware.

use nomi4m::prelude::*;

// set up your client
let client = Nominatim::parse(base_url, email)?;

// check the server is ok
let status: String = client.status().await?;
assert_eq!(status, "OK");

// search for something
let res = client.search("statue of liberty").limit(1).send::<JsonV2PlaceFormat>().await?;
println!("{:?}", res);

Modules§

prelude

Structs§

Nominatim
The nominatim client.