openrouteservice icon indicating copy to clipboard operation
openrouteservice copied to clipboard

Add preference selection to matrix to allow 'shortest' distance & duration

Open TheGreatRefrigerator opened this issue 3 years ago • 3 comments

Here's what I did

Trying to return a matrix with shortest preference


Here's what I got

Matrix defaulting to recommended preference


Here's what I was expecting

API parameter to choose the preference


Here's what I think could be improved

Exposing a preference (or similar named) parameter to the API and pass the value to the matrix algorithm to also return shortest durations and distances.

Also see https://github.com/GIScience/openrouteservice/issues/452 https://ask.openrouteservice.org/t/matrix-for-shortest-fastest-route-preference/3903/2

TheGreatRefrigerator avatar May 31 '22 12:05 TheGreatRefrigerator

Hello, Any update regarding availability of this option for api request using openrouteservice-js sdk?

MuhammadYasirAliKhan786 avatar Nov 29 '23 10:11 MuhammadYasirAliKhan786