Skip to main content

MapBoxRouterExt

Trait MapBoxRouterExt 

Source
pub trait MapBoxRouterExt: Send + Sync {
    // Required method
    fn route_with_profile<'life0, 'life1, 'life2, 'async_trait>(
        &'life0 self,
        coordinates: &'life1 [Coordinate],
        profile: &'life2 str,
        alternatives: Option<u32>,
    ) -> Pin<Box<dyn Future<Output = EveryMapResult<MapBoxRouteResponse>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait,
             'life2: 'async_trait;
}
Expand description

Extension trait for MapBox-specific routing capabilities.

Required Methods§

Source

fn route_with_profile<'life0, 'life1, 'life2, 'async_trait>( &'life0 self, coordinates: &'life1 [Coordinate], profile: &'life2 str, alternatives: Option<u32>, ) -> Pin<Box<dyn Future<Output = EveryMapResult<MapBoxRouteResponse>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait, 'life2: 'async_trait,

Get a route with specific profile and options not in the core trait.

Dyn Compatibility§

This trait is dyn compatible.

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

Implementors§