create

fun create(    routingApi: RoutingApi,     pointDifferenceThreshold: Distance = DEFAULT_POINT_DIFFERENCE_THRESHOLD_IN_METERS,     pointDifferenceNumberThreshold: Int = DEFAULT_POINT_DIFFERENCE_NUMBER_THRESHOLD): DynamicRoutingApi

Creates instance of OnlineDynamicRoutingApi.

Important: This is a Public Preview API. It may be changed or removed at any time.

Parameters

routingApi

RoutingApi used to perform routing requests.

pointDifferenceThreshold

Distance threshold between corresponding points in compared routes. exceeding which will cause the point of the route to be considered invalid.

pointDifferenceNumberThreshold

Number of points differing by at least pointDifferenceThreshold between the current and the compared routes, exceeding which will cause the fetched route to be considered invalid and the route will not be replanned.