Bus Plotter IV: Extrapolate From Stop Predictions

September 26th, 2010
mbta, mbtaplot, programming, python, tech, transport
I've made the plotter now take advantage of the "predictions" command offered by the webservice that tells you how many minutes it will be before a specific bus arrives at a given stop. Instead of doing linear extrapolation from the previous two reported positions it uses the previous position and an upcoming stop. I first tried using the next stop to do predictions, but because the webservice only provides data at the minute level, this was much too inaccurate and I switched to using a threshold of two minutes out. There might be multiple stops two minutes out, so we break ties by taking the closest one to the last known bus location.

See it in action: mbtaplot

Recent posts on blogs I like:

The Grimke Sisters and Sexism

The necessity of birth control

via Thing of Things April 22, 2024

Clarendon Postmortem

I posted a postmortem of a community I worked to help build, Clarendon, in Cambridge MA, over at Supernuclear.

via Home March 19, 2024

How web bloat impacts users with slow devices

In 2017, we looked at how web bloat affects users with slow connections. Even in the U.S., many users didn't have broadband speeds, making much of the web difficult to use. It's still the case that many users don't have broadband speeds, both …

via Posts on March 16, 2024

more     (via openring)