Giter VIP home page Giter VIP logo

railrouter-sg's Introduction

RailRouter SG

Screenshot of RailRouter SG

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.

Technicalities

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 everything
  • yarn run lines - scrape the lines from OpenStreetMap
  • yarn run lines-all - generate all.json from the scraped lines
  • yarn run exits-all - scrape exits fron OneMap.sg and regenerate all.json
  • yarn run wikipedia-all - fetch data from Wikipedia and regenerate all.json
  • yarn run all - run lines, lines-all, exits-all and wikipedia-all
  • yarn run inliner - inline all assets from _index.html to index.html
  • yarn run watch - watch files and run inliner when files changed
  • yarn run serve - run a local server
  • yarn start - runs both watch and serve

License

Data: © OpenStreetMap contributors and OneMap.

Everything else: MIT

railrouter-sg's People

Contributors

cheeaun avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.