pub struct MapBoxGeocoder { /* private fields */ }Expand description
Implementation of Geocoder for MapBox Geocoding API v6.
Implementations§
Source§impl MapBoxGeocoder
impl MapBoxGeocoder
pub fn new(client: Arc<MapBoxClient>) -> Self
pub fn with_base_url(client: Arc<MapBoxClient>, base_url: String) -> Self
Trait Implementations§
Source§impl Geocoder for MapBoxGeocoder
impl Geocoder for MapBoxGeocoder
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,
Source§impl MapBoxGeocoderExt for MapBoxGeocoder
impl MapBoxGeocoderExt for MapBoxGeocoder
Source§fn permanent_geocode<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
query: &'life1 str,
limit: Option<u32>,
language: Option<&'life2 str>,
) -> Pin<Box<dyn Future<Output = EveryMapResult<MapBoxSearchResponse>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
fn permanent_geocode<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
query: &'life1 str,
limit: Option<u32>,
language: Option<&'life2 str>,
) -> Pin<Box<dyn Future<Output = EveryMapResult<MapBoxSearchResponse>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
Use the MapBox permanent geocoding endpoint (batch lookups).
Source§fn batch_geocode<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
queries: &'life1 [String],
_language: Option<&'life2 str>,
) -> Pin<Box<dyn Future<Output = EveryMapResult<Vec<MapBoxSearchResponse>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
fn batch_geocode<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
queries: &'life1 [String],
_language: Option<&'life2 str>,
) -> Pin<Box<dyn Future<Output = EveryMapResult<Vec<MapBoxSearchResponse>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
Batch geocode up to 50 forward/reverse queries.
Auto Trait Implementations§
impl !RefUnwindSafe for MapBoxGeocoder
impl !UnwindSafe for MapBoxGeocoder
impl Freeze for MapBoxGeocoder
impl Send for MapBoxGeocoder
impl Sync for MapBoxGeocoder
impl Unpin for MapBoxGeocoder
impl UnsafeUnpin for MapBoxGeocoder
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