::  Posts  ::  RSS  ::  ◂◂RSS  ::  Contact

Bus Plotter II: Linear Extrapolation

September 24th, 2010
programming, transport, mbta, mbtaplot, tech, python  [html]
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:

Incoming Gantz-Led Government to Invest in Israel’s Infrastructure

Israel’s incoming prime minister Benny Gantz unveiled an emergency government, to take power following an upcoming confidence vote in the Knesset. The last two MKs required to give Gantz a 61-59 majority, two members of Gantz’s own Blue and White Party wh…

via Pedestrian Observations April 1, 2020

Finding home in the time of coronavirus

Disclaimer: I’m going to say this once. Obviously, I am not happy about the coronavirus’s threat to public health or the economic toll it’s taking. I do not think the existence of this pandemic is good. Just so happens that social distancing and remote wo…

via Holly Elmore March 31, 2020

Massachusetts should shut down immediately

We’ve been running 30x fewer tests than other states, and have been extremely tardy in responding to the Biogen outbreak.

via benkuhn.net March 15, 2020

more     (via openring)

More Posts:


  ::  Posts  ::  RSS  ::  ◂◂RSS  ::  Contact