It is a taxi application that gets the customer's location (lat,long) and calculates the travel distance between every taxi driver and the customer, In order to know which taxi driver is closer to the customer.
I have all the locations of taxi drivers stored in web database. and I have searched for methods that takes lat1,lat2 long1,long2 and returns the distance in Kilo meter.
Google maps has Distance Matrix API but it prohibits using it without showing the map
(I do not need the map, If you know a possible solution for this, I will be able to use google-maps service)
Fortunately, Bing maps allows calculating travel distance without showing the map! in the tutorial below: http://msdn.microsoft.com/en-us/library/gg636957.aspx
but I am facing tow issues with it :
* it takes the location as a String (location name) and I want to give it as float (lat and long)
*I do not know how to use XML with PHP (how to store driving distance in a PHP variable)
I have been searching for one week and I will be very thankful for your help ()