Description Usage Arguments Value See Also
Uses an OSRM (open source routing machine) instance to compute distance measures between source geometry and destination geometry. Measures available are those enabled by the OSRM API service: walking, driving and cycling. These measures are available in the following metrics: duration (in minutes) and distance (in meters).
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 | duration_by_foot(src, dst)
distance_by_foot(src, dst)
duration_by_car(src, dst)
distance_by_car(src, dst)
duration_by_bike(src, dst)
distance_by_bike(src, dst)
osrm_distance(src, dst, profile)
osrm_duration(src, dst, profile)
|
src |
|
dst |
|
profile |
|
matrix
Matrix with measures (distances or durations)
from src (rows) to dst (cols).
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.