calculateDirections

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

Route?

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


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

Route?

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