luqmaan/Instabus

Route View shows buses for both directions.

Closed this issue · 2 comments

Example: You see both northbound buses and southbound buses on a northbound route.

Is this a feature or a bug? :trollface:

That's up to you I think. =P

If it is a feature, it was mentioned to me by a user as an unexpected behavior. He showed it to me on his phone, and it really crowds the screen.

I looked into the code in rappid.js:

this.vehicles = new VehicleCollection(route.id(), route.directionId());

This looks like it should be creating collections based on direction id.

So... when I go the console in the route view...

screen shot 2015-09-21 at 9 24 58 am

Based on the mock data, I'm expecting a direction code (N, W, S, E), but that's about as far as I got on that.