Replies: 3 comments
-
The What you're asking for is what I'd call a "sparse matrix". I'm not sure the API response for I seem to remember writing up a description for an API like this a long time ago, but I can't find it. From memory, my suggestion was to add Either way, someone would need to implement it - we don't have it today. |
Beta Was this translation helpful? Give feedback.
-
Thank you for your response @danpat . |
Beta Was this translation helpful? Give feedback.
-
Looks like the |
Beta Was this translation helpful? Give feedback.
-
As part of OSRM table API, we can pass multiple sources & destinations and in turn we get back a matrix of sources * destinations.
Is there any way I can pass only the pairs that I want OSRM to compute & fetch distance/durations for. For example (used JSON as a representation for easier understanding):
as opposed to the existing table API which accepts input as below:
In the existing table API, I get 2 * 2 = 4 combinations whereas I only want the distance/duration for the 2 pairs specified as part of
sourceDestinationPairs
I could not find any API which returns distance/durations only for the specified source & destination pairs. Is this not added due to any potential performance issues?
Beta Was this translation helpful? Give feedback.
All reactions