Yes I know, weird name. Following the same mistake I did for BusRouter.SG.
RailRouter SG is a progressive web app that lets you explore MRT and LRT rail routes in Singapore. Powered by Service Worker and works offline.
It's meant to scratch my curiosity itch for comparing the real route lines VS the lines shown on Google Maps, which I personally find too straight and skews the perception of how trains actually travel in the real world. Yeah, kind of like the feeling of being trolled by Google Maps. Get it?
Anyway, these are awesome features available:
- Real rail route lines, for all train routes, including Sentosa Express line and Changi Line.
- Checkbox to show Google's own transit layer, so that you can compare.
- Show station names in Chinese and Tamil if available, besides English.
- Show location of exits (aka entrances) for almost all stations.
- Let me repeat, works offline.
That's it.
The real route lines come from OpenStreetMap here: http://wiki.openstreetmap.org/wiki/Mass_Rapid_Transit_%28Singapore%29
The JSON files are in data
folder. all.json
is for all routes and stops, while other files are individual lines.
Here's a sprinkle of yarn magic:
yarn
- install everythingyarn run lines
- scrape the lines from OpenStreetMapyarn run lines-all
- generateall.json
from the scraped linesyarn run exits-all
- scrape exits fron OneMap.sg and regenerateall.json
yarn run wikipedia-all
- fetch data from Wikipedia and regenerateall.json
yarn run all
- runlines
,lines-all
,exits-all
andwikipedia-all
yarn run inliner
- inline all assets from_index.html
toindex.html
yarn run watch
- watch files and runinliner
when files changedyarn run serve
- run a local serveryarn start
- runs bothwatch
andserve
Data: © OpenStreetMap contributors and OneMap.
Everything else: MIT