HOW TO find distance between 2 places using Virtual Earth Map Control

In the time that you search online to find a source to find the distance between two places, you can adapt one of the example scripts from Virtual Earth Map Control SDK 6.2 online documentation.

All you need to play with the Virtual Earth Map Control (version 6.2 has recently been released) is a fair knowledge of Javascript.

I do not have an in-depth knowledge of the Virtual Earth Map Control SDK (yet), but I was able to adapt the example for the VEMap.GetDirections Method within minutes to find distance between two places (in India) using Virtual Earth.

From the original sample, I omitted the function related to time it takes to travel between the two specified places as it is pretty irrelevant to India. Given the state of the roads, you never really know.

Related links:
Road maps of Indian cities on the Web
HOW TO find the latitude & longitude of any town/city using Virtual Earth Map Control

Comments