mod request;
mod response;
pub use request::*;
pub use response::*;
use crate::fetch;
use crate::models::Error;
use crate::SearchParams;
use crate::Send;
use async_trait::async_trait;
const URL: &'static str = "https://maps.googleapis.com/maps/api/place/nearbysearch/json";
#[async_trait]
impl Send<Response, Error> for Prominence {
async fn send(&self) -> Result<Response, Error> {
let response = fetch(URL, &self.get_params()).await?;
Ok(response)
}
}
#[async_trait]
impl Send<Response, Error> for Distance {
async fn send(&self) -> Result<Response, Error> {
let response = fetch(URL, &self.get_params()).await?;
Ok(response)
}
}