calculateRoute
fun calculateRoute(from: GeographicCoordinate, to: Collection<GeographicCoordinate>, options: PathNetwork.RouteOptions = RouteOptions()): RouteCalculationResult
Calculates a route from the given coordinates to the closest reachable of the provided destination coordinates, or why there isn't one.
Since
0.0.130
Parameters
from
The coordinates to calculate the route from
to
A collection of coordinates to calculate a route to. The route returned will be to the closest of these coordinates.
options
Options the route must adhere to
fun calculateRoute(from: Destination, to: Collection<Destination>, options: PathNetwork.RouteOptions = RouteOptions()): RouteCalculationResult
Calculates a route from the given destination to the closest reachable of the provided destinations, or why there isn't one.
Since
0.0.130
Parameters
from
The destination to calculate the route from
to
A collection of destinations to calculate a route to. The route returned will be to the closest of these destinations.
options
Options the route must adhere to