The distance between them will appear just above the map in both miles and kilometers. Check the below sample code. The Bing Maps Distance Matrix API can help your users determine the best route possible by reordering stops based on the trips parameters including time or distance mode of transportation driving walking or public transit start and end time traffic prediction and more.
Latitudelongitude of those points.
Latitudelongitude of those points. Replace the above line with below. Distancedistance x2 x1x2 - x1 y2 y1y2 - y1. Simple VB function to calculate distance between two points Public Function DistanceBetween ByVal X1 As Single ByVal Y1 As Single ByVal X2 As Single ByVal Y2 As Single As.