Hourly Origin-Destination Ridership: Intercity

Data as of 30 Mar 2025, 23:59

Hourly origin-destination ridership data for the Intercity service. The table provides a brief preview of the data, but you may download the data in full.

0 viewsΒ·0 downloads

How is this data produced?

This dataset is derived from anonymous transactional data generated by the KTMB Integrated Ticketing System (KITS). The origin-destination totals are calculated by summing passenger counts across all station-station pairs at hourly frequency. This data represents the most 'raw' form of the data provided by KTMB to support national open data, and is the single source of truth from which all other Intercity ridership datasets are derived.

What caveats I should bear in mind when using this data?

Because the size of the complete dataset from 2020 onwards exceeds the row limit of Microsoft Excel (1,048,576), we recommend working with the data programatically, preferably using the parquet files provided.

Publication(s) using this data

Our site features a dashboard on KTMB ridership where you can explore this data in a more interactive manner.

Metadata

Dataset description

Hourly origin-destination ridership data for the Intercity service. The table provides a brief preview of the data, but you may download the data in full.

Variable definitions
  • Date
  • Time
  • Origin
  • Destination
  • Ridership
Last updated:

31 Mar 2025, 03:31

Next update:

01 Apr 2025, 03:45

Data source(s)
  • Malayan Railways Limited
  • Ministry of Transport
License

This data is made open under the Creative Commons Attribution 4.0 International License (CC BY 4.0). A copy of the license is available Here.

Download

Data
Full Dataset (CSV)

Full Dataset (CSV)

Recommended for individuals seeking an Excel-friendly format.

0

Full Dataset (Parquet)

Full Dataset (Parquet)

Recommended for data scientists seeking to work with data via code.

0

Code

Connect directly to the data with Python.

# If not already installed, do: pip install pandas fastparquet import pandas as pd URL_DATA = 'https://storage.data.gov.my/transportation/ktmb/intercity_2025.parquet' df = pd.read_parquet(URL_DATA) if 'date' in df.columns: df['date'] = pd.to_datetime(df['date']) print(df)

Sample OpenAPI query

This data catalog is not available through OpenAPI as the nature of the data makes it unsuitable for API access. For the full dataset, please use the provided download link as shown in the above section.