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

Comment via: substack

Recent posts on blogs I like:

Why I Don't Think My Braces Were Worth It

A couple weeks ago, I got my braces off. I kind of wish I had never had them, though. When I was younger, two of my teeth were sticking out, and they looked kind of funny. I thought that my teeth were just fine, and I didn't want to get braces. But s…

via Anna Wise's Blog Posts January 3, 2026

Donation recommendations for effective altruists

My recommendation for donors who are American citizens or permanent residents is that they donate directly to high-value political candidates.

via Thing of Things January 2, 2026

Somebody built a daylight lamp!

Quick meta note: I’m writing my important blog posts on Substack. I’ll continue using my personal website for my product recommendations and other more minor things.

via Home December 31, 2025

more     (via openring)