pub trait HereGeocoderExt: Send + Sync {
// Required methods
fn discover<'life0, 'async_trait>(
&'life0 self,
req: DiscoverRequest,
) -> Pin<Box<dyn Future<Output = EveryMapResult<HereDiscoverResponse>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn autosuggest<'life0, 'async_trait>(
&'life0 self,
req: AutosuggestRequest,
) -> Pin<Box<dyn Future<Output = EveryMapResult<HereAutosuggestResponse>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
}Expand description
Extension trait for HERE-specific geocoder capabilities.
These methods are not part of the core Geocoder trait because they
are HERE-specific. Import this trait to access them:
ⓘ
use everymap_providers_here::HereGeocoderExt;
let results = geocoder.discover(query, &options).await?;Required Methods§
Sourcefn discover<'life0, 'async_trait>(
&'life0 self,
req: DiscoverRequest,
) -> Pin<Box<dyn Future<Output = EveryMapResult<HereDiscoverResponse>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn discover<'life0, 'async_trait>(
&'life0 self,
req: DiscoverRequest,
) -> Pin<Box<dyn Future<Output = EveryMapResult<HereDiscoverResponse>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Discover places/POIs matching a query.
Sourcefn autosuggest<'life0, 'async_trait>(
&'life0 self,
req: AutosuggestRequest,
) -> Pin<Box<dyn Future<Output = EveryMapResult<HereAutosuggestResponse>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn autosuggest<'life0, 'async_trait>(
&'life0 self,
req: AutosuggestRequest,
) -> Pin<Box<dyn Future<Output = EveryMapResult<HereAutosuggestResponse>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Get autosuggest results for a partial query (type-ahead).
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".