Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

A wrapper around LTA's DataMall API to create a better interface for bus information related APIs. Built using Koa and TypeScript

Notifications You must be signed in to change notification settings

TechSupportz/transito-server

Repository files navigation

Transito

Transito's compainion server

This project provides a convenient wrapper around the LTA DataMall API, simplifying access to bus-related information. Built using Koa and TypeScript, it offers a more streamlined interface for common use cases.

The main reason for building this was that the raw LTA DataMall endpoints for bus stops, services, and routes can be a bit tricky to use, especially when you just want to grab specific details. This service grabs all the bus stop, service, and route data, gives it a good shake, and re-parses it into a data structure that's actually useful.

Specifically, bus stop, service, and route data are retrieved, processed and then stored into two handy JSON files: bus-services.json and bus-stops.json. These files are the backbone of the server, providing the data for all your bus-related queries.

But wait, won't the data become outdated?

That's a great question! Yes, bus information can change. That's why the data is refreshed every week. This refresh is handled by a cron job running on a Cloudflare Worker, ensuring the data stays reasonably up-to-date.

Links

Check out the main Transito repository

Download Transito today!

About

A wrapper around LTA's DataMall API to create a better interface for bus information related APIs. Built using Koa and TypeScript

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

AltStyle によって変換されたページ (->オリジナル) /