GitXplorerGitXplorer
c

busrouter-sg

public
343 stars
103 forks
18 issues

Commits

List of commits on branch main.
Verified
2727fe0dde73b7f4d65bf4b737e16dd1a9e662dd

Merge pull request #99 from cheeaun/staging

ccheeaun committed a year ago
Unverified
491eef99baeca6cb698ce6d800c4cbd1fc67bab0

Remove plausible

ccheeaun committed a year ago
Verified
6db1f1c027e16368f09e25e4dbb2d3b6b5b1b610

Merge pull request #98 from cheeaun/staging

ccheeaun committed a year ago
Unverified
99c2334390b88968c06ee497c5a7f27984cb3ade

Add piwik

ccheeaun committed a year ago
Verified
5a84bea308cb7e25292f119edd8e5f1e134a0f87

Merge pull request #88 from cheeaun/staging

ccheeaun committed 2 years ago
Unverified
195fde637c5e7e8889efc7ea7ba3cbe4428b30c7

Don't need uncertain class

ccheeaun committed 2 years ago

README

The README file for this repository.

BusRouter SG

Singapore Bus Routes Explorer 🚌 πŸ—Ί πŸ‡ΈπŸ‡¬

Explore bus stops and routes on the map for all bus services in Singapore, with realtime bus arrival times and per-bus-stop passing routes overview.

Website     Blog Post

Screenshot of BusRouter SG

Screenshot of BusRouter SG

✨ Features

  • All bus stops shown even in low zoom levels.
  • Full routes display with all stops for every service.
  • View all routes passing through a stop.
  • Bus arrival times for every stop.
  • First/last timings for all services.

πŸ•° Previously

Previously known as Singapore Bus Routes Explorer, abbreviated as 'SBRE' and previously looks like this:

Screenshot of Singapore Bus Routes Explorer

Visualization mini-site

A separate mini-site showing ALL stops and routes on a map. All of them.

Check it out: Visualization mini-site (⚠️ Uses a lot of bandwidth).

Technicalities

Data

All data such as bus stops, services and routes are mostly scraped from https://www.lta.gov.sg/, which means they are copyrighted by the Land Transport Authority.

They are available here: cheeaun/sgbusdata.

Web App

The scripts for the web app:

  • npm start - start server for development
  • npm run build - build for production and deployment, in ./dist folder.

Localization

Crowdin

➑️ Start translating ⬅️

Visualization

At least Node.js 14 is required.

The scripts to generate the data, in order:

  1. node visualization/build-routes.mjs
    • Reads data.busrouter.sg/v1/data/stops.min.json and transform routes data with "levels" for 3D extrusion.
    • Generates visualization/data/routes.json and visualization/data/levels.json to be read by the build-stops script.
  2. node visualization/build-stops.mjs
    • Reads data.busrouter.sg/v1/data/stops.min.geojson and buffered into triangle polygons which will be 3D-extruded.
    • Generates visualization/data/stops.3d.json.

πŸ“œ License

Data Β© LTA Β© OneMap Β© OSM contributors. Everything else: MIT

🎀 Feedback

If you have any feedback, leave them on Discussions or tweet me @cheeaun on Twitter.

πŸ™‡β€ Credits