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:

Starting With Chords

A lot of people play fiddle. Basically nobody starts by learning chords before learning melodies. But that's actually how I learned. I started with chords. One of the nice things about learning to play violin this way is that you can go busking even…

via Anna Wise's Blog Posts November 15, 2024

Stuffies

I have some stuffies and I just have a bunny. Bunny is a rabbit. Woof is a seal. My favorite stuffie is bun bun. I play with my stuffies. Sometimes I jump up with them and I roll them. I can just throw them in the air when I want to play bthululubp wi…

via Nora Wise's Blog Posts November 15, 2024

You Can Buy A Malaria Net

2024 election takes

via Thing of Things November 6, 2024

more     (via openring)