cheeaun / busrouter-sg

BusRouter SG: Singapore Bus Routes Explorer
https://busrouter.sg/
324 stars 102 forks source link

Bus stop routes overview: colours distinguishing up/downroute #47

Open ghost opened 3 years ago

ghost commented 3 years ago

I'm not sure how the current colour scheme is programmed, but would it be possible to, for a bus stop routes overview (for example [https://busrouter.sg/#/stops/59051/routes] ) to colour route segments going towards the bus stop (i.e. uproute) in one colour, and segments going away from the bus stop (i.e. downroute) in another? For stops where the same service serving opposite destinations both ply (e.g. 139 at BS 52109 or 856 at BS 47201), two separate lines can be shown.

This is a good-to-have feature of course and doesn't require priority.

emer7 commented 2 years ago

Hi I am interested in taking up this issue

I skimmed through assets/app.js and I think adding some simple styling to Mapbox layer should work?

cheeaun commented 2 years ago

@emer7 hey sure, you can try it out and experiment.

On my side, I generally don't know how to solve this problem yet. Few notes: