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
    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 Dec 23 '19 at 18:23

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

|improve this answer|||||

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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