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:

Jealousy In Polyamory Isn't A Big Problem And I'm Tired Of Being Gaslit By Big Self-Help

The nuance is in the post, guys

via Thing of Things July 18, 2024

Trust as a bottleneck to growing teams quickly

non-trust is reasonable • trust lets collaboration scale • symptoms of trust deficit • how to proactively build trust

via benkuhn.net July 13, 2024

Coaching kids as they learn to climb

Helping kids learn to climb things that are at the edge of their ability The post Coaching kids as they learn to climb appeared first on Otherwise.

via Otherwise July 10, 2024

more     (via openring)