+91-7834999925       contact@tacthub.in

traffic station powered by Bing maps

Traffic congestion may be a major problem that traffic engineers everywhere the globe try to unravel. Congestion will increase the uncertainty in travel times resulting in human stress and unsafe traffic things. higher management of traffic through intelligent transportation systems (ITS) applications, particularly by predicting the congestion on numerous roads and informing the travelers concerning a similar is one attainable answer. correct and fast prediction is one in every of the vital factors on that the dependableness of such a system depends. Now in this project we have LCD , Particle Wifi MCU and bing map api we going to get the information about delay of time due to traffic! the data generated from map taken as raw is used to calculate the density of traffic. Hardware Connections:


Hardware components
Particle Photon
SparkFun Serial Enabled 16x2 LCD - White on Black 3.3V
LED (generic) used green, yellow and red (1 each)
Resistor 220 ohm
Breadboard (generic)
Software & Online Connections:
Arduino IDE
Bing Map API


created a variant that rotates between two totally different destinations. GitHub link within the software system section. The flow is basically a similar, simply two totally different webhooks has to be created.
The challenge is to form this information in person relevant. the thought is comparable to a watch or lookout in terms of glance-ability. However, the knowledge for those is common to the folks within the same place, and there square measure variety of websites pronto providing that information that would be parsed.
With traffic info one has to submit a route from e.g. work to home, and extract the traffic information from there.
 
There were 2 major insights that build this comes possible
It used Bing maps API. it's a comparatively easy API to urge a route. The response- and one will see that in text format simply submitting that decision through an online browser, comes as JSON. it's the traffic information, together with however long it takes with and while not the traffic between the 2 nominative points. However, the ensuing response remains terribly long and would be sophisticated to extract that info directly within the wallboard, doubtless facing memory shortage.
Particle have introduced a practicality referred to as webhooks. Basically, it will send internet request, buffering and process those. it'd be helpful in itself, as massive responses square measure turn over 512 bytes, and solely that smaller chunks square measure sent to the board. just in case of the Bing route, the response would be broken to app twenty items, every one severally less seemingly to check the capabilities of the board to traumatize the info. the gorgeous factor tho' is that the ability for a webhook to dissect knowledge from a JSON response. just in case of this project, from a Bing route response that is over ten kBytes of information, what is truly sent to the wallboard appearance one thing like this: "None~21.642~1120~1128~"
Get a Bing app key
Sign to the Bing Developer portal victimisation your MS account: https://www.bingmapsportal.com/
Go to “My account -> produce or read keys”
Create a brand new key, you'll do a basic or trial
Leave universal resource locator blank
App kind may be a mobile app
create an attempt key that may expire in one month: AllfFa2mK7DlUH0SYiEyJCin7zWQ1O7bWJeP7kU2kM1iinRriN7_BaEw61MIB1mQ


Create webhook file
{
  "event": “traffic_hackster_io",
  "event": “traffic_hackster_io",
  "url": "http://bit.ly/1MSkCBe",
  "requestType": "POST",
  "headers": null,
  "query": null,
  "responseTemplate": "{{#resourceSets}}{{#resources}}{{trafficCongestion}}~{{travelDistance}}~{{travelDuration}}~{{travelDurationTraffic}}~{{/resources}}{{/resourceSets}}",
  "json": null,
  "auth": null,
  "mydevices": true
}

Price: 7000 INR

Buy Now