bus routes aren't being centered properly and the path is now showing up
jeffkaufman opened this issue · 1 comments
see title
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.