Traffic

The Traffic Service provides access to real-time traffic data using the Bing Traffic API. For more information, check out https://msdn.microsoft.com/en-us/library/hh441725.aspx

RPCS

Traffic.search(westLongitude: Number, northLatitude: Number, eastLongitude: Number, southLatitude: Number)

Search for traffic accidents in a given region. Results are sent as messages in the format:

Message type: Traffic fields: latitude, longitude, type

Arguments:

  • westLongitude: Number info
  • northLatitude: Number info
  • eastLongitude: Number info
  • southLatitude: Number info
Traffic.stop()

Stop any pending requested messages (search results).