jeffkaufman / mbtaplot

mbta bus plotter using google app engine
http://sccs.swarthmore.edu/~cbr/news/mbtaplot.html
11 stars 1 forks source link

bus routes aren't being centered properly and the path is now showing up #12

Closed jeffkaufman closed 13 years ago

jeffkaufman commented 13 years ago

see title

jeffkaufman commented 13 years ago

nextbus changed the api so that routeConfig requests do not include information about which dirTags a path is for. This broke the whole path infrastructure, the most obvious symptom of which was broken zooming. I knew I was using an undocumented interface, so it's not their fault. There is no longer any way to tell which dirTag a path belongs to, but we need to know this so that buses show up on the right side of the street. I'm modifying the code to substitute the series of stops for the series of path points. On routes like the 75 which have long distances with no stops this won't look good, but on most routes it should be fine. On the bright side, this should decrease the number of polylines by over a factor of three, which should speed up the browser.