Using the Distance Matrix API for Bing Maps 

The Distance Matrix API allows you to generate travel time and distances (with the help of the Bing Maps Route API) for a given set of origins and destinations. It can also factor in predictive traffic information when generating times thereby allowing you to avoid any potential delays. Read more