Interface for finding a route based on traffic data.
fun findRoute( startPoint: RouteSearchPoint, finishPoint: RouteSearchPoint, routeSearchOptions: RouteSearchOptions, intermediatePoints: List<RouteSearchPoint> = listOf() ): Future<List<TrafficRoute>>
Searches for a route with the given parameters.
Starting point of the route.
The finish point of the route.
Route search options
Intermediate points to pass in the same order in which the points are given in the vector.
Future with a set of found routes, or throw a NativeException on failure.
An empty route set is a valid result, meaning that a route matching the specified search criteria cannot be found.
When searching for routes for freight transport, it is possible to return routes passing through the access zones for which passes were not provided, if it was not possible to route only through the access zones for which the passes were provided. To check if the list of passes is sufficient to pass a route, use the function route_matches_truck_pass_zone_passes.
fun findBriefRouteInfos(searchPoints: List<BriefRouteInfoSearchPoints>, routeSearchOptions: RouteSearchOptions): Future<List<BriefRouteInfo?>>
Searching for basic route information for a matching set of search points.
A set of points for getting basic information about the route.
Future with basic information about the set of routes corresponding to the set of search points, or throwing a NativeException on failure.
If the basic information for any of the pairs of points is not found, the element at the corresponding index in the returned result will be null.
Returns a list of all supported passes that allow truck traffic within the pass zones.