Well i am working in a location based app and i need to find driving distance between two location on earth at the server end. i am coding the web service in php.
Till now i am able to calculate the aerial distance using the Haversine formula, but now i want to calculate the driving distance.
There can be possible duplicates for this question, but i was not able to find any help to calculate the "Driving distance" between two "coordinates" ie latitude and longitude instead of addresses in PHP
Best Answer
Use Google Distance Matrix API :-
Here is the code:-
Find out more at Google Distance Matrix API