geocoder 0.1.2

A Rust crate that provides an easy way to use the Google Geocoding API.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
use thiserror::Error;

/// GeocoderError is an enum that represents errors that can occur while using the Geocoder.
#[derive(Debug, Error)]
pub enum GeocoderError {
    #[error("request failed")]
    RequestFailed(#[from] reqwest::Error),

    #[error("failed to parse response")]
    ParseError(#[from] serde_json::Error),

    #[error("address not found")]
    AddressNotFound,
}