Missing vehicle options in Matrix Service

17 views
Skip to first unread message

Stephan Schuster

unread,
Aug 2, 2018, 9:32:19 AM8/2/18
to openrouteservice.org
I was surprised that there is no `profile_params` parameter in the Matrix endpoint like there is for Directions. So it looks like there is no direct way to factor in weight restrictions for heavy vehicles or similar side conditions. Is there a way to work around this?

Timothy

unread,
Aug 3, 2018, 5:21:29 AM8/3/18
to openrouteservice.org
Hey Stephan,

the matrix API uses a different algorithm which doesn't allow additional parameters. You can compute 5x5 matrices with parameters, if this amount will suffice.

Cheers, Tim

Stephan Schuster

unread,
Aug 3, 2018, 9:14:30 AM8/3/18
to openrouteservice.org
I don't really understand your answer. You are saying it is not possible but are hinting at the same time that there is a way. Could you give some details how to compute a small matrix with vehicle restrictions?

Timothy

unread,
Aug 6, 2018, 4:28:19 AM8/6/18
to openrouteservice.org
Hi Stephan,

please read the api documentation for this, if the information is not contained, please provide your cURL request here and we will dig in.

Regarding possible/not possible - we allow matrices up to 5x5 for any profile if restrictions are added in the options.

Cheers, Tim
Reply all
Reply to author
Forward
0 new messages