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:

Animal Welfare and Capabilitarianism

All ethics is a special case of animal welfare science

via Thing of Things December 18, 2024

Developing the middle ground on polarized topics

Avoiding false dichotomies The post Developing the middle ground on polarized topics appeared first on Otherwise.

via Otherwise November 25, 2024

How to eat vegan on Icon of the Seas

Royal Caribbean has a new giant cruise ship, Icon of the Seas, which has a large selection of food options.

via Home November 21, 2024

more     (via openring)