Bus Plotter II: Linear Extrapolation

September 24th, 2010
mbta, mbtaplot, programming, python, tech, transport
I've modified the bus plotter so that it will estimate bus locations based on simple linear extrapolation from it's last two reported locations. One downside is this often makes buses go off the route, so I think I'm going to make buses "snap" to their routes when within some distance. Even smarter would be to either do my own predictions or figure out some way to use the nextbus predictions. Unfortunately, it appears nextbus's webservice only has a command to request predictions by stop, not by bus. Bother.

This is what it looks like on the 77 route (which is an unfairly flattering example because the route is pretty straight).

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)