User916059107 posted
I'm trying to use Bing Maps API -
https://msdn.microsoft.com/en-us/library/hh441726
According to the details, I can request information about the severity (LowImpact to Serious) and type (accident, congestion etc)
I have the key, and I am querying their API and I am getting a value - so in that instance, it is working. The problem is, I'm not getting the expected value!
Today, there is a road accident near where I live. Google maps shows it as red (severe) and as does Bing Maps.
However, the response I get back from Bing API only shows me there are 2 minor incidents, both are temporary traffic signals
This must only mean I'm querying the API incorrectly.
The URL I am querying is (please note, I have a real key)
http://dev.virtualearth.net/REST/v1/Traffic/Incidents/51.813056,-0.153894,51.890461,-0.223589/?output=xml&key=myKeyGoesHere;
I updated to
http://dev.virtualearth.net/REST/v1/Traffic/Incidents/51.813056,-0.153894,51.890461,-0.223589/?type=1,2,3,4,5,6,7,8,9,10,11&output=xml&key=MyKey
In this, I specify the type explicitly but the same issue persists.
I put the coordinates into http://itouchmap.com/latlong.html and the coordinates I chose appear to be correct (covering a section of the A1M motorway in England).
Can any one see what I'm doing wrong and what I need to do to return if it's an accident or congestion etc (how do I return the Type and Severity)?