locked
How can I know the traffic information along the route RRS feed

  • Question

  • According to the bing map rest service API document, there are two ways to know the traffic information.

    One is the warnings in the route response data. But seems there are no specific correlation between traffic location codes and warnings. So I am not sure I can use the warnings to represent the runtime traffic information along the route.

    The other is to request the traffic rest API. But how to detemind the bounding box as the request parameter and how to decide the traffic locations from response are along the route?



    • Edited by junsiyang Wednesday, November 20, 2013 1:24 PM
    Wednesday, November 20, 2013 1:23 PM

Answers

  • When calculating a route you can have it optimize the route based on current traffic conditions. Look for the optimize option and set it to the time with traffic option. It will automatically calculate the best route based on traffic and will also alter travel time accordingly. Traffic based routing is available in 34 countries, the same countries where traffic flow data is available. If you are using the Bing Maps V7 AJAX or Windows Store SDK there is a Traffic Manager class you can use which exposes all the traffic data directly into the map without the need to use any service.

    http://rbrundritt.wordpress.com

    • Proposed as answer by Ricky_Brundritt Wednesday, November 20, 2013 2:44 PM
    • Marked as answer by Ricky_Brundritt Wednesday, November 27, 2013 10:14 AM
    Wednesday, November 20, 2013 2:43 PM
  • Usually the directions instructions will automatically tell you about traffic issues on your route. You won't be able to pull this information from anywhere else. Note that there are a lot of restrictions around what you can do with the traffic data as noted in the Terms of Use of Bing Maps.

    http://rbrundritt.wordpress.com

    • Proposed as answer by Ricky_Brundritt Thursday, November 21, 2013 6:13 PM
    • Marked as answer by junsiyang Friday, November 22, 2013 4:55 AM
    Thursday, November 21, 2013 6:13 PM

All replies

  • When calculating a route you can have it optimize the route based on current traffic conditions. Look for the optimize option and set it to the time with traffic option. It will automatically calculate the best route based on traffic and will also alter travel time accordingly. Traffic based routing is available in 34 countries, the same countries where traffic flow data is available. If you are using the Bing Maps V7 AJAX or Windows Store SDK there is a Traffic Manager class you can use which exposes all the traffic data directly into the map without the need to use any service.

    http://rbrundritt.wordpress.com

    • Proposed as answer by Ricky_Brundritt Wednesday, November 20, 2013 2:44 PM
    • Marked as answer by Ricky_Brundritt Wednesday, November 27, 2013 10:14 AM
    Wednesday, November 20, 2013 2:43 PM
  • Thank you for your reply. Maybe I didn't clarify my point. 

    Here is my seniro: I have a route already and I don't want to change it according to current traffic conditions. But I want to let program to detemind whether there are traffic conditions along this route and there is no need to display them on the map. 

    Can I use the warnings of the route data to represent current traffic conditions along the route? Seems it's the easiest way to let program to check the traffic conditions along the route.

    Thursday, November 21, 2013 2:07 AM
  • Usually the directions instructions will automatically tell you about traffic issues on your route. You won't be able to pull this information from anywhere else. Note that there are a lot of restrictions around what you can do with the traffic data as noted in the Terms of Use of Bing Maps.

    http://rbrundritt.wordpress.com

    • Proposed as answer by Ricky_Brundritt Thursday, November 21, 2013 6:13 PM
    • Marked as answer by junsiyang Friday, November 22, 2013 4:55 AM
    Thursday, November 21, 2013 6:13 PM