As I'm building my application (Python3) and working with the Traffic API, I find myself sort of 'guessing' at what the road information will be for a specific part of the road I want to monitor.
For example, say I want to only monitor is a single bridge like the one our town calls the 'Centennial' bridge which can be seen here: http://mapq.st/2iDUv7N
Within the JSON response, I'm checking the 'parameterizedDescription' field called 'roadName' for (and I'm guessing here): Centennial Brg
Then, to double-check myself I'm guessing at two other fields (fromLocation & toLocation) with Davenport in the from and Rock Island in the to.
That way if there is a backup on the bridge (car broke down, etc) I should be able to catch it in the feed, right?
So my question is: Are there any archived feeds that I can access or perhaps a better way to detect sections of roads or bridges rather than guessing at them?
Thank you for your time and consideration.
Thank you for your quick answer, sorry I didn't reply sooner. I couldn't find a feature on this forum to alert me when a new post or reply is made. I'll look into your suggestion. =)
OK, so I read your reply again and then looked at my Python code and realized that I am using a bounding box of:
&boundingBox=41.61030862727467%2C-90.31105041503906%2C41.43294592970754%2C-90.7247543334961
I'm using a larger one to cover my entire area so I can catch all 4 or so bridges I'd like to monitor. Then I'm looping over any results to look for the aforementioned data sets; something like this:
I'm hoping that any events that come in will end up matching something like this to further shorten what I'm reporting on. It just feels weird to have to just keep tracking the feed until something happens and then adjust later these variables in my code. I used the test service to find other events and tried to mimic what was coming back on those areas and I'm 97.65% confident that mine will work but was looking for a more sure-fire way. =) How about a feature request? =)
This topic doesn't talk about historic records at all. Are these just purged? Do I have to maintain them myself?