Matrix distance and time calculations

is there any details on how the distance and travel time is calculated for the matrix? i have tried cross referencing results with other sources with varying success.

Hey,

matrix uses the same graph as routing does, but a different algorithm. Distances and durations returned should nevertheless be the same, but might differ due to preferences given to the routing endpoint.

What “other sources” did you try coss-referencing the results with, and what are the issues that arose?

Best regards

hi

i had been cross checking some routes with google maps, i am unsure how the distance is calculated. are the results in the matrix based on the quickest route for a selected mode of transport? or is is based on shortest possible route?

Hey,

the matrix endpoint uses the recommended preference, meaning that it also takes into account how well certain streets are suited for the used mode of transport, assigning a priority to each street.
This priority is then used in combination with the “fastest” option to yield a recommended route.

Please note that google maps uses different data than the openrouteservice, (most notably live traffic information) so differences are to be expected.

Best regards

1 Like

Thanks for your help with this.

2 Likes