pub struct GoogleGeocoder { /* private fields */ }Expand description
Implementation of Geocoder for Google Maps Geocoding API.
Implementations§
Source§impl GoogleGeocoder
impl GoogleGeocoder
pub fn new(client: Arc<GoogleClient>) -> Self
pub fn with_base_url(client: Arc<GoogleClient>, base_url: String) -> Self
Trait Implementations§
Source§impl Geocoder for GoogleGeocoder
impl Geocoder for GoogleGeocoder
fn geocode<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
query: &'life1 str,
options: &'life2 GeocodeOptions,
) -> Pin<Box<dyn Future<Output = EveryMapResult<SearchResponse>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
fn reverse_geocode<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
coordinate: &'life1 Coordinate,
options: &'life2 ReverseGeocodeOptions,
) -> Pin<Box<dyn Future<Output = EveryMapResult<SearchResponse>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
Auto Trait Implementations§
impl !RefUnwindSafe for GoogleGeocoder
impl !UnwindSafe for GoogleGeocoder
impl Freeze for GoogleGeocoder
impl Send for GoogleGeocoder
impl Sync for GoogleGeocoder
impl Unpin for GoogleGeocoder
impl UnsafeUnpin for GoogleGeocoder
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more