[OSRM-talk] Order of via_points in /trip response

Prateek Sachan ps at prateeksachan.com
Wed Dec 9 11:20:14 UTC 2015


Firing a query like:

http://
{IP_ADDRESS}:5000/trip?loc=18.9457243,72.8237605&loc=18.9457243,72.8237605&loc=18.9414821,72.8284626&loc=18.9457243,72.8237605&loc=18.9629992,72.8175748&loc=18.9352599,72.8371511&loc=19.1227498,72.8932321

The order of the points in the response in via_points object was:

   1. 19.123192,72.892303
   2. 18.935261,72.837151
   3. 18.941444,72.828468
   4. 18.945871,72.82399
   5. 18.945871,72.82399
   6. 18.945871,72.82399
   7. 18.962875,72.817871
   8. 19.123192,72.892303

Why don't the points follow the order in which they were input in the
query? Why are the points changed in via_points and appear slightly
different than the original ones supplied in the query?

Also, is the last loc (in the query) always the first and last via_point?


The same issue I have posted on osrm github[1].

[1]: https://github.com/Project-OSRM/osrm-backend/issues/1806


-- 
Prateek Sachan
Indian Institute of Technology Delhi, 2014
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/osrm-talk/attachments/20151209/eab28d0b/attachment.html>


More information about the OSRM-talk mailing list