latlng 0.1.0

Rust SDK for the latlng.work geocoding and places API
Documentation
//! Rust SDK for the [latlng.work](https://latlng.work) geocoding and places API.
//!
//! # Quick start
//!
//! ```no_run
//! use latlng::LatlngClient;
//!
//! #[tokio::main]
//! async fn main() -> latlng::Result<()> {
//!     let client = LatlngClient::with_api_key("latlng_xxxxx")?;
//!     let result = client.geocode("Eiffel Tower, Paris").await?;
//!
//!     if let Some(place) = result.first() {
//!         println!("{}, {}", place.lat, place.lon);
//!     }
//!
//!     Ok(())
//! }
//! ```
//!
//! Use [`LatlngClient::anonymous`] for unauthenticated requests. Anonymous
//! requests are supported, but have lower rate limits.

mod client;
mod error;
mod models;
mod places;

pub use client::{
    ClientBuilder, GeocodeRequest, LatlngClient, ReverseRequest, DEFAULT_AUTOSUGGEST_BASE_URL,
    DEFAULT_BASE_URL,
};
pub use error::{Error, Result};
pub use models::{
    AutosuggestResponse, CategoriesResponse, Category, Coordinates, GeocodingResponse,
    GeocodingResult, NearbyResponse, Place, SearchResponse,
};
pub use places::{AutosuggestRequest, NearbyRequest, PlacesClient, SearchRequest};