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).

Recent posts on blogs I like:

How Does Fiction Affect Reality?

Social norms

via Thing of Things April 19, 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)