Bing Maps Distance between Cordinatores

# Bing Maps Distance between Cordinatores

• Thursday, February 23, 2012 12:19 AM

Hello everyone,

I am developing a small application that uses the latitude and longitude to calculate the distance between points.
I am using the following formula within a stored procedure and it works ok.

With the formula above, the distance is calculated directly.

I've been researching applications that allow to define routes and found thefollowing web services:
Application Using Bing MapsSOAP Services
http://msdn.microsoft.com/en-us/library/cc980922.aspx
My question is whether it is possible to obtain a route with the distance between twoor more coordinates, and if the route is drawn based on the shortest path.
Point LONGITUDE     LATITUDE
A      -8,750486    41,3559
B      -8,606915    41,15467
C      -8,631134    41,15847
D      -8,766627    41,40691
distances obtained results of the formula
AB=24
CD =31
If possible using the Bing MapsSOAP Services,
is to confirm the results and see what the differences to the
formula obtained using only the coordinates.
It is possible to obtain the distance between more than two points,
for examplepassing through all points.

I use this code to obtain de address with coordinator

string results = "";
string key = "”;
ReverseGeocodeRequest reverseGeocodeRequest = new ReverseGeocodeRequest();
reverseGeocodeRequest.Credentials = newGeoCodeService.Credentials();
reverseGeocodeRequest.Credentials.ApplicationId = key;
// Set the point to use to find a matching address
GeoCodeService.Locationpoint = newGeoCodeService.Location();

Thanks