latlng
Rust SDK for latlng.work, a geocoding and places API powered by OpenStreetMap data.
Install
[]
= "0.1"
= { = "1", = ["macros", "rt-multi-thread"] }
By default, the crate uses rustls for TLS. To use native TLS instead:
[]
= { = "0.1", = false, = ["native-tls"] }
Quick start
use LatlngClient;
async
Anonymous requests are supported, but have lower rate limits:
use LatlngClient;
async
API surface
LatlngClient::geocodefor forward geocoding.LatlngClient::reversefor reverse geocoding.LatlngClient::places().nearbyfor points of interest near a coordinate.LatlngClient::places().searchfor full-text place search.LatlngClient::places().autosuggestfor typeahead suggestions viahttps://suggest.latlng.work/autosuggest.LatlngClient::places().categoriesfor available place categories.
All methods are async and return latlng::Result<T>.
docs.rs
This crate is configured for docs.rs in Cargo.toml:
[]
= true
= ["--cfg", "docsrs"]