none
How to highlight a route and display infobox for that route to display the traffic flow details for that route in JS RRS feed

  • Question

  • I need to create a bing map to display the traffic detail for each route. I plan to highlight a route and display infobox for that route to display the traffic flow details for that route. For example, when I click one route which is colored already, it will display an infobox, and then I can see the detail of traffic condition on that route (let's say 10km/hour out of 90km/hour). Is there any possible solution for that? It will be greatly appreciated if someone can provide a complete example for my question in JS, please.
    • Edited by Darren2015 Saturday, July 4, 2015 8:08 PM change title
    Saturday, July 4, 2015 8:07 PM

Answers

  • Traffic flow detail is only available as a tile layer. Raw flow data is not exposed through the service. If you need an API that has the raw data try using http://traffic.com They have API's and provide the traffic data that is in Bing Maps. If you license the traffic data from them you can display it on Bing Maps since they are a data provider.

    http://rbrundritt.wordpress.com

    Monday, July 6, 2015 3:42 PM

All replies

  • Traffic flow detail is only available as a tile layer. Raw flow data is not exposed through the service. If you need an API that has the raw data try using http://traffic.com They have API's and provide the traffic data that is in Bing Maps. If you license the traffic data from them you can display it on Bing Maps since they are a data provider.

    http://rbrundritt.wordpress.com

    Monday, July 6, 2015 3:42 PM
  • Thank you, and I voted for you. One more question, could you tell me how to embed BIRT report API into the infobox in Bing-map? 
    Tuesday, July 7, 2015 9:48 PM
  • Never heard of BIRT. If it has HTML you can put it into an infobox in a number of different ways. If you set the HTML content value of the infobox the whole infobox style disappears. I've documented a way to work with this here: https://rbrundritt.wordpress.com/2011/11/08/simple-custom-infoboxes-in-bing-maps-v7/

    http://rbrundritt.wordpress.com

    Wednesday, July 8, 2015 12:48 AM