Skip to content
/ KTM Public

Exploratory code to keep track of KTM Komuter trains

Notifications You must be signed in to change notification settings

arun-ks/KTM

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 

Repository files navigation

KTM

This website shows online status of trains in KTM Seremban Line(KTM Batu Caves - Pulau Sebang/Tampin).

It shows distance of stations & trains as "Minutes of train travel" instead of KMs.

You can get the live version here

Purpose

Users of KTM Seremban Line can use this to plan their trip to KTM stations based on realitime status of trains.

The page allows user to pick their base-station. If you bookmark the link with URL which includes baseStation parameter, you won't have to select it every time.

Usage

Each active train is marked to show its direction (northbound or southbound) and show distance from the base-station.

Each station is marked as minutes of train travel from the base-station.

  • To filter trains based on their direction - Click on up, down or both. Using links on top of the page.
  • Click on station markers to see details/links about it

Focus Mode

Click on label for a train number to focus on 1 train.

This will show more details about the train & it position. If the train is active, the page will give audio updates on the train's distance.

Caveats

The page is as reliable as the data provided by MTREC APIs.There are often times when trains status are not reported at all.

If more people use this, maybe MTREC/KTM will ensure data accuracy & consistency.

Credits

This uses

The page was inspired by https://go.navig.me/my/ktmb which is very comprehensive, and thus too generic to be of any use. Hence, the need for this tool.

I used chatGPT extensively to assist with initial versions, which was cleaned up, refactored(multiple times), rewritten & enhanced thereafter.

About

Exploratory code to keep track of KTM Komuter trains

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published