mapradar 0.5.0

Turn addresses into coordinates and find nearby amenities using Google Maps API
Documentation
use crate::cache::GeoCache;

#[cfg(feature = "python")]
use pyo3::prelude::*;

/// Client for interacting with Google Maps APIs with built-in caching.
#[cfg_attr(feature = "python", pyclass(from_py_object))]
#[derive(Clone)]
pub struct MapradarClient {
    api_key: String,
    http_client: reqwest::Client,
    cache: GeoCache,
}

impl MapradarClient {
    pub fn _new(api_key: String) -> Self {
        Self {
            api_key,
            http_client: reqwest::Client::new(),
            cache: GeoCache::new(),
        }
    }
}

#[cfg(feature = "python")]
pub mod bindings;
pub mod core;