Hi Luiz,

Pls provide the exact structure of the API call you are making. There may
be some problems in that. One commonly repeating mistake is that people put
latitude first while OSRM needs longitude first.

Documentation : http://project-osrm.org/docs/v5.5.1/api/

And you will get the distance as part of the whole json response. Then you
have to use your code to extract the distance from that json. If you don't
know how to work with json, just lookup online; it's very easy. You can
paste your response into a "json beautifier" like tool to see the structure
in more familiar ways.

--
Cheers,
Nikhil VJ
https://nikhilvj.co.in


On Fri, Jun 19, 2020 at 7:04 AM Luiz Claudio de Paula Costa <
luiz.netw...@gmail.com> wrote:

> Can any help me? I need take only distance from route, I am a newby and
> I'm not getting process the json return to extract the distance.
> thanks any help
> luiz from brasil
>
>
> _______________________________________________
> OSRM-talk mailing list
> OSRM-talk@openstreetmap.org
> https://lists.openstreetmap.org/listinfo/osrm-talk
>
_______________________________________________
OSRM-talk mailing list
OSRM-talk@openstreetmap.org
https://lists.openstreetmap.org/listinfo/osrm-talk

Reply via email to