[OSRM-talk] Starting point in permutation array (trip response)

Victor Kostomarov kostomarovvv at gmail.com
Wed Jan 20 12:04:35 UTC 2016


Hello,

I'm using osrm for trip service.
Often trip returns the index of first coordinate in the middle or in the
end of permutation array, for example:
"permutation":[3,1,0,2].

if the 0-th position is the starting point of the route, how should I
convert array:
[0,2,3,1]
or
[0,1,3,2]?

Practically, reverse direction may be shorter and faster.

Thank you for what you are doing and best regards,
Victor
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/osrm-talk/attachments/20160120/2520fbbe/attachment.html>


More information about the OSRM-talk mailing list