In my PHP code i have to launch something like this command:
"http://router.project-osrm.org/table?loc=$lat,$lon&loc=$lat2,$lon2"
The response is, for example:
{"distance_table":[[0,1047],[1046,0]]}
So how can i do this in php(I have seen something similar with google maps api but with this kind of command I am not able to do what i want) and how can I print as result the number 1047
(in this case).
Thanks very much in advance! It is very important!