This post is a following to the previous post about drawing SG bus route with google map API.
Status of the system
Toward drawing all the bus services …
Drawing all the bus services on the same map not only is *very heavy* for the browser (at least for firefox, and its SVG renderer) but also give very little information (it is too much data at one time).
See by yourself:
Even zooming (on Dhoby Ghaut station):
What could be done …
- To solve the problem of too many services displayed at same time, definitively a good UI could improve usability.
What I have in mind is a kind of UI which enable to select which services to display … but maybe something better can be done like auto-selection of services to display depending of zoom factor or user itinary?
- The previous point could also help to not send all the data to the client (in order to save bandwith).
- Automatic route simplification: on one route, when adjacent stops are “too close” to each other, we could remove one of them on the drawing (which would make it lighter, and also remove some artifact like tiny wigzag caused by stop on the opposite side of the road).
- Adding some constraints manually (editing few distance between some stops) to correct some wrong path.
As in the previous post conclusions, I think a mashup of existing itinery service to display the itinery on a map could be quite interesting.