1

How can I use OSRM to given a destination and 5 origins. Then OSRM should return the fastest origin, the distance between this origin and the destination and the duration of the route.

Can I do it with Table service? And how can I do it?

1
  • 1
    the docs for the table API (for Node) is fairly comprehensive; add all 6 lonlat pairs as coordinates, specifiy which of those are the sources and which one is the destination (by passing their array index as sources and destinations) and fire it up.
    – geozelot
    Commented Dec 23, 2019 at 18:23

1 Answer 1

1

Table Service worked for me. The destination is first -46.890702,-23.199130 and the others 2 points are origins.

http://localhost/table/v1/driving/-46.890702,-23.199130;-46.890557,-23.201527;-46.9142061,-23.1895509?sources=1;2&destinations=0&annotations=distance,duration

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.