How to get fastest or shortest route

Hello,

When I use both the directions and the optimization API, I am interested in getting the fastest or the shortest overall route.
Can I achieve that?
And, if yes, how?

Hey,

for directions, have a look at the preferences parameter in our docs.

For optimization, refer to the Vroom documentation that is linked in our docs.

Best regards,

Hello,

I looked at the preference parameter for the directions API.
But, when reading the Vroom documentation, I can’t find sth related.
Could you be more specific?
Thank you.

Best Regards.

Hey,

the optimization endpoint is using a matrix request to the ORS which in turn is using the fastest preference. Regarding changing this, have a look at this issue and the Vroom-Issue mentioned in there.

Best regards