Shhivaa Shhivaa - 5 days ago 5
Javascript Question

driving distance between S and D in bing map in javascript?

I want the 1.driving distance and 2.driving time between source(A) and destination(B) in bing maps in javascript. please help me.

Answer

You can easily do this using the Directions module in the Bing Maps V7 JavaScript control: https://msdn.microsoft.com/en-us/library/hh312802.aspx

You can find interactive code samples here: https://www.bingmapsportal.com/ISDK/AjaxV7#DirectionsModule2

Alternatively you can also use the Bing Maps REST services in JavaScript. Here is a code sample: https://msdn.microsoft.com/en-us/library/gg427607.aspx