Answered trafiic data not updated?

  • Monday, July 09, 2012 8:26 AM
     
     

    HI<o:p></o:p>

    I am using
    the Bing route service with the traffic information to calculate the time of a
    trip in several countries between large cities.<o:p></o:p>

    Unfortunately
    the time returned is always the same for a specific trip; it looks like the
    traffic information is not taken into account.<o:p></o:p>

    Does this
    service really use live traffic data or am I doing something wrong in my code:<o:p></o:p>


            Dim results As String = ""

            Dim routeRequest As New RouteRequest()

            routeRequest.Options.TrafficUsage = TrafficUsage.TrafficBasedRouteAndTime

            routeRequest.Options.Optimization = RouteOptimization.MinimizeTime

            Dim routeService As New RouteServiceClient()

            Dim routeResponse As RouteResponse = routeService.CalculateRoute(routeRequest)

            results = routeResponse.Result.Summary.TimeInSeconds

All Replies

  • Monday, July 09, 2012 11:19 AM
    Owner
     
     Answered
    Traffic based routing currently is only available in the US. Note that Traffic data was just recently added to Bing Maps for areas outside of the US but the Routing service has not been updated since this data has been released.

    http://rbrundritt.wordpress.com

  • Monday, July 09, 2012 12:53 PM
    Moderator
     
     Answered

    @Ricky - I never realised that TrafficUsage was based on realtime traffic data, even in the US (which is what the OP and your answer seem to suggest) - is that right?

    I always assumed that setting TrafficUsage.TrafficBasedRouteAndTime used average/expected patterns of traffic along the route to revise the expected travel time/determine the quickest route.


    twitter: @alastaira blog: http://alastaira.wordpress.com/

  • Monday, July 09, 2012 1:20 PM
    Owner
     
     Answered

    I'm not 100% certain on the realtime traffic. I have seen cases in the US where using the traffic based routing gave you a route that was significantly different from using standard routing. But, more to the point on this question, Bing Maps only had any traffic data in the US until recently. Traffic incident data and realtime traffic flow data can be seen on the map as a tile overlay. Traffic based routing may be available outside of the US in the future but isn't something that was in our intial expansion of the traffic feature. 


    http://rbrundritt.wordpress.com

  • Monday, July 09, 2012 9:38 PM
     
     Answered
    Traffic based routing will use a combination of realtime information where it is available and calculated/historical speeds on other roads. In the US, most major highways in urban areas have realtime data and so will reflect that in the route chosen.
  • Tuesday, July 10, 2012 10:36 AM
    Moderator
     
     

    Thanks for the clarification, Duncan - I never knew that! (but, then again, as almost all of my work is non-US I've had little need to investigate the TrafficUsage parameter before...).

    Might go and do some tests...


    twitter: @alastaira blog: http://alastaira.wordpress.com/