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

Bus Plotter IV: Extrapolate From Stop Predictions

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

Maybe it’s not me– it’s grad school

Just a low effort post. I would love a mutually supportive comment discussion about it (because I’m not on facebook). Twitter replies would be nice, too.  I appreciated this post from Ben Kuhn, Grad school is worse for public health than STDs. In it he ca…

via Holly Elmore December 11, 2019

Grad school is worse for public health than STDs

(The way you can *really* tell something is horribly wrong is that grad students find PhD Comics darkly funny, not just dark.)

via benkuhn.net December 8, 2019

I’m Giving a Talk About Construction Costs Tomorrow

By popular demand, I’m giving the talk I gave 2 weeks ago at NYU, again. The database will be revised slightly to include more examples (like Ukraine, which I added between when I gave the talk and when I blogged about it), and I may switch around a few t…

via Pedestrian Observations December 2, 2019

more     (via openring)

More Posts:


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