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:

Borderlines aren’t unusually attractive

Slutstack recently wrote an article advising women to adopt some of the traits of the hot-but-crazy BPD girl in order to appeal to men.

via Thing of Things November 21, 2026

Nora's Game Flaws

Today I was sitting in the living room reading a book, and my little sister Nora was sitting on the floor playing with these little lego people, but they look more like people than most lego people. There kept being flaws in her game, but she wouldn't…

via Anna Wise's Blog Posts November 21, 2026

I did a meditation and it sort of changed my personality?!

a trip report

via benkuhn.net November 8, 2026

more     (via openring)