calculateDirections
fun calculateDirections(from: GeographicCoordinate, to: Collection<GeographicCoordinate>, options: PathNetwork.RouteOptions = RouteOptions()): Route?
Computes a route from the given coordinates to the closest of the provided destination coordinates if such a route exists and returns null otherwise.
Return
Since
0.0.86
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 calculateDirections(from: Destination, to: Collection<Destination>, options: PathNetwork.RouteOptions = RouteOptions()): Route?
Computes a route from the given destination to the closest of the provided destination coordinates if such a route exists and returns null otherwise.
Return
Since
0.0.86
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