BusTicker / BusTicker-Server

MIT License
0 stars 0 forks source link

bustime.js's stops collection is ignoring multiple stops with same ID #11

Open tdhsmith opened 10 years ago

tdhsmith commented 10 years ago

organizeData should have an additional case when the stop id already exists in the hash (because multiple routes can use the same stop) that adds the new route and direction to the stop. This will require stopsHash[i].routeId and stopsHash[i].direction to be arrays or somesuch.

brennanMKE commented 10 years ago

@tdhsmith Please try the API on the branch that I created to see what needs to be adjusted. I did not account for these conditions.