isNewRoute

fun isNewRoute(previousRouteProgress: RouteProgress?, routeProgress: RouteProgress): Boolean

Compares a new routeProgress geometry to a previousRouteProgress geometry to determine if the user is traversing along a new route. If the route geometries do not match, this returns true.

Return

true if the direction route geometries do not match up, otherwise, false

Since

0.7.0

Parameters

previousRouteProgress

the past route progress with the directions route included

routeProgress

the route progress with the directions route included


fun isNewRoute(previousRouteProgress: RouteProgress?, directionsRoute: DirectionsRoute): Boolean

Compares a new routeProgress geometry to a previousRouteProgress geometry to determine if the user is traversing along a new route. If the route geometries do not match, this returns true.

Return

true if the direction route geometries do not match up, otherwise, false

Since

0.7.0

Parameters

previousRouteProgress

the past route progress with the directions route included

directionsRoute

the current directions route