pub struct GoogleRouteMatcher { /* private fields */ }Expand description
Implementation of RouteMatcher for Google Maps Roads API.
Uses the snapToRoads endpoint to snap GPS points to the road network.
Implementations§
Source§impl GoogleRouteMatcher
impl GoogleRouteMatcher
pub fn new(client: Arc<GoogleClient>) -> Self
pub fn with_base_url(client: Arc<GoogleClient>, base_url: String) -> Self
Trait Implementations§
Source§impl RouteMatcher for GoogleRouteMatcher
impl RouteMatcher for GoogleRouteMatcher
fn match_route<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
points: &'life1 [Coordinate],
options: &'life2 MatchingOptions,
) -> Pin<Box<dyn Future<Output = EveryMapResult<TraceResponse>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
Auto Trait Implementations§
impl !RefUnwindSafe for GoogleRouteMatcher
impl !UnwindSafe for GoogleRouteMatcher
impl Freeze for GoogleRouteMatcher
impl Send for GoogleRouteMatcher
impl Sync for GoogleRouteMatcher
impl Unpin for GoogleRouteMatcher
impl UnsafeUnpin for GoogleRouteMatcher
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