Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
Recently (as in, over the past few months) the WMATA BusPosition feed has been behaving anomalously.
There are three observed problems:
1. The feed doesn't include the entire fleet - during the weekday rush hour we'd expect to see close to 900 buses, but this morning the feed returned fewer than 250 vehicles.
2. Bus positions return the wrong trip, or are lagging badly. Look at this example:
<TripHeadsign>FRIENDSHIP HEIGHTS</TripHeadsign>
Notice how the DateTime value (that is, the timestamp when the position was last updated) is nearly 1.5 hours _after_ the vehicle's current trip supposedly ended! Almost all of the BusPosition records returned are in this state.
3. Times for the G2 route are even stranger, with the TripStartTime being set to midnight of the day _after_ the trip!
<TripHeadsign>GEORGETOWN UNIVERSITY</TripHeadsign>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.