Skip to main content

GoogleAttributeExt

Trait GoogleAttributeExt 

Source
pub trait GoogleAttributeExt: Send + Sync {
    // Required methods
    fn get_speed_limits_by_ids<'life0, 'life1, 'life2, 'async_trait>(
        &'life0 self,
        place_ids: &'life1 [String],
        units: Option<&'life2 str>,
    ) -> Pin<Box<dyn Future<Output = EveryMapResult<GoogleSpeedLimitsResponse>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait,
             'life2: 'async_trait;
    fn get_speed_limits_along_path<'life0, 'life1, 'life2, 'async_trait>(
        &'life0 self,
        path: &'life1 str,
        units: Option<&'life2 str>,
    ) -> Pin<Box<dyn Future<Output = EveryMapResult<GoogleSpeedLimitsResponse>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait,
             'life2: 'async_trait;
}
Expand description

Extension trait for Google-specific attribute capabilities.

Provides typed access to the Roads API speedLimits endpoints, which return more detail than the core AttributeResponse.

use everymap_providers_google::GoogleAttributeExt;
let limits = provider.get_speed_limits_by_ids(&place_ids, None).await?;

Required Methods§

Source

fn get_speed_limits_by_ids<'life0, 'life1, 'life2, 'async_trait>( &'life0 self, place_ids: &'life1 [String], units: Option<&'life2 str>, ) -> Pin<Box<dyn Future<Output = EveryMapResult<GoogleSpeedLimitsResponse>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait, 'life2: 'async_trait,

Get speed limits by place IDs. GET /v1/speedLimits?placeId=…&placeId=…&units=…

Source

fn get_speed_limits_along_path<'life0, 'life1, 'life2, 'async_trait>( &'life0 self, path: &'life1 str, units: Option<&'life2 str>, ) -> Pin<Box<dyn Future<Output = EveryMapResult<GoogleSpeedLimitsResponse>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait, 'life2: 'async_trait,

Get speed limits along a path (snapped to roads). GET /v1/speedLimits?path=…&units=…

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§