﻿# ptroutefare\_xml\_dataspec.pdf

[Official PDF](<https://static.data.gov.hk/td/routes-fares-xml/dataspec/ptroutefare_xml_dataspec.pdf>) · Transport Department

Extracted text; check the official PDF for layout and figures.

## Key sections

- [Routes and Fares of Public Transport Data Specification (as of 6 July 2026)](/documents/td/ptroutefare-xml-dataspec-pdf/#source-routes-and-fares-of-public-transport-data-specification-as-of-6-july-2026)
- [Entity Relationship Master Table for PT Route Company Code Table for Company Code](/documents/td/ptroutefare-xml-dataspec-pdf/#source-entity-relationship-master-table-for-pt-route-company-code-table-for-company-code)
- [Route ID](/documents/td/ptroutefare-xml-dataspec-pdf/#source-route-id)
- [Table for PT Route Stop](/documents/td/ptroutefare-xml-dataspec-pdf/#source-table-for-pt-route-stop)
- [Stop ID](/documents/td/ptroutefare-xml-dataspec-pdf/#source-stop-id)
- [Table for Stop](/documents/td/ptroutefare-xml-dataspec-pdf/#source-table-for-stop)
- [Master Table for PT Route](/documents/td/ptroutefare-xml-dataspec-pdf/#source-master-table-for-pt-route)
- [1=Time or day specific services ( ), 2=Separate fare for weekend and Public Holidays ( ),](/documents/td/ptroutefare-xml-dataspec-pdf/#source-1-time-or-day-specific-services-2-separate-fare-for-weekend-and-public-holidays)
- [Delta change Field ROUTE\_ID](/documents/td/ptroutefare-xml-dataspec-pdf/#source-delta-change-field-route-id)
- [CHANGE](/documents/td/ptroutefare-xml-dataspec-pdf/#source-change)
- [Delta changes are compiled in csv format](/documents/td/ptroutefare-xml-dataspec-pdf/#source-delta-changes-are-compiled-in-csv-format)
- [Description](/documents/td/ptroutefare-xml-dataspec-pdf/#source-description)
- [Route ID](/documents/td/ptroutefare-xml-dataspec-pdf/#source-route-id-2)
- [\[Add\] The route record is new in current version of data file \[Update\] The route record has been updated in current version of data file](/documents/td/ptroutefare-xml-dataspec-pdf/#source-add-the-route-record-is-new-in-current-version-of-data-file-update-the-route-record-has-been-updated-in-current-version-of-data-file)
- [\[Delete\] The route record was previously available but has been removed in current version of data file](/documents/td/ptroutefare-xml-dataspec-pdf/#source-delete-the-route-record-was-previously-available-but-has-been-removed-in-current-version-of-data-file)
- [Table for PT Route Stop](/documents/td/ptroutefare-xml-dataspec-pdf/#source-table-for-pt-route-stop-2)
- [Delta changes are compiled in csv format On each delta change record, Route ID with its Route Sequence (or known as Bound) indicates](/documents/td/ptroutefare-xml-dataspec-pdf/#source-delta-changes-are-compiled-in-csv-format-on-each-delta-change-record-route-id-with-its-route-sequence-or-known-as-bound-indicates)
- [Table for Stop](/documents/td/ptroutefare-xml-dataspec-pdf/#source-table-for-stop-2)
- [\* Stop coordinates are provided in Hong Kong 1980 Grid system ( reference: https://www.geodetic.gov.hk/tc/gi/grid\_index.htm )](/documents/td/ptroutefare-xml-dataspec-pdf/#source-stop-coordinates-are-provided-in-hong-kong-1980-grid-system-reference-https-www-geodetic-gov-hk-tc-gi-grid-index-htm)
- [CHANGE](/documents/td/ptroutefare-xml-dataspec-pdf/#source-change-2)
- [Delta changes are compiled in csv format](/documents/td/ptroutefare-xml-dataspec-pdf/#source-delta-changes-are-compiled-in-csv-format-2)
- [Description Stop ID \[Add\] The route record is new in current version of data file \[Update\] The route record has been updated in current](/documents/td/ptroutefare-xml-dataspec-pdf/#source-description-stop-id-add-the-route-record-is-new-in-current-version-of-data-file-update-the-route-record-has-been-updated-in-current)
- [Delta changes are compiled in csv format](/documents/td/ptroutefare-xml-dataspec-pdf/#source-delta-changes-are-compiled-in-csv-format-3)
- [Table for Company Code](/documents/td/ptroutefare-xml-dataspec-pdf/#source-table-for-company-code)
- [Description Company / Operator code Company / Operator name in Chinese Company / Operator name in Simplified Chinese](/documents/td/ptroutefare-xml-dataspec-pdf/#source-description-company-operator-code-company-operator-name-in-chinese-company-operator-name-in-simplified-chinese)
- [Company / Operator name in English Description of company code, for reference](/documents/td/ptroutefare-xml-dataspec-pdf/#source-company-operator-name-in-english-description-of-company-code-for-reference)

# Routes and Fares of Public Transport Data Specification (as of 6 July 2026)

| Tables |  | filename prefix |
|---|---|---|
| 1 | Master Table for PT Route | ROUTE |
| 2 | Table for PT Route Stop | RSTOP |
| 3 | Table for Stop | STOP |
| 4 | Table for Fare | FARE |
| 5 | Table for Company Code | COMPANY_CODE |

# Entity Relationship Master Table for PT Route Company Code Table for Company Code

# Route ID

# Table for PT Route Stop

# Stop ID

# Table for Stop

# Master Table for PT Route

**Field Data Type Description**

| ROUTE_ID | Integer | Route ID e.g. KMB, GMB |
|---|---|---|
| COMPANY_CODE | String | please refer to the remark of Company Code # below and code table "Company_Code" |
| DISTRICT | String | HKI, KLN, NT (only applicable for GMB) |
| ROUTE_NAMEC | String | Route Name in Chinese |
| ROUTE_NAMES | String | Route Name in Simplified Chinese |
| ROUTE_NAMEE | String | Route Name in English |
| ROUTE_TYPE | Integer | 1=bus( |
| SERVICE_MODE | String | A=whole, N=night, NT=night & specific time, R=regular/day, T=regular & specific time 0=Not applicable, |

# 1=Time or day specific services ( ), 2=Separate fare for weekend and Public Holidays ( ),

**SPECIAL\_TYPE Integer 3=Time or day specific and separate fare for weekend and PHs ( )**

| JOURNEY_TIME | Integer | Journey Time |
|---|---|---|
| FULL_FARE | Numeric | Full fare |
| LOC_START_NAMEC | String | Starting Point Location Name in Chinese |
| LOC_START_NAMES | String | Starting Point Location Name in Simplified Chinese |
| LOC_START_NAMEE | String | Starting Point Location Name in English |
| LOC_END_NAMEC | String | End Point Location Name in Chinese |
| LOC_END_NAMES | String | End Point Location Name in Simplified Chinese |
| LOC_END_NAMEE | String | End Point Location Name in English |
| HYPERLINK_C | String | Headway hyperlink in Chinese |
| HYPERLINK_S | String | Headway hyperlink in Simplified Chinese |
| HYPERLINK_E | String | Headway hyperlink in English |
| LAST_UPDATE_DATE | Datetime | Date and time of last update |

| # COMPANY_CODE |  | # COMPANY_CODE |  |
|---|---|---|---|
| CTB | City Bus | PI | Ma Wan Bus |
| KMB | Kowloon Motor Bus | DB | Discovery Bay Bus |
| NWFB | New World First Bus | XB | LMC Cross Boundary Coach |
| LWB | Long Win Bus | LRTFeeder | Mass Transit Railway Feeder Bus |
| NLB | New Lantao Bus | GMB | Green Minibus |
| KMB+CTB | Joint Operation of KMB & CTB | FERRY | Ferry |
| KMB+NWFB | Joint Operation of KMB & NWFB | PTRAM | Peak Tram |
| LWB+CTB | Joint Operation of LWB & CTB | TRAM | Tram |

# Delta change Field ROUTE_ID

# CHANGE

# Delta changes are compiled in csv format

# Description

# Route ID

# [Add] The route record is new in current version of data file [Update] The route record has been updated in current version of data file

# [Delete] The route record was previously available but has been removed in current version of data file

-----

# Table for PT Route Stop

| ROUTE_ID | Integer | Route ID |
|---|---|---|
| ROUTE_SEQ | Integer | 1 = outbound or circular route; 2 = inbound |
| STOP_SEQ | Integer | Stop sequence of a route |
| STOP_ID | Integer | Stop ID |
| STOP_PICK_DROP | Integer | 1 = Drop-off only; 2 = Pick-up only; 3 = Pick-up and drop-off |
| STOP_NAMEC | String | Stop name in Traditional Chinese |
| STOP_NAMES | String | Stop name in Simplified Chinese |
| STOP_NAMEE | String | Stop name in English |
| LAST_UPDATE_DATE | Datetime | Date and time of last update |

| Delta change |  |  |
|---|---|---|
| Field ROUTE_ID ROUTE_SEQ CHANGE | Description Route ID 1 = outbound or [Add] The route [Update] The route [Delete] The route current version of | circular route; 2 = inbound record is new in current version of data file record has been updated in current version of data file record was previously available but has been removed in data file |

# Delta changes are compiled in csv format On each delta change record, Route ID with its Route Sequence (or known as Bound) indicates

**changes occurred in all of its stops**

-----

# Table for Stop

| STOP_ID | Integer | Stop ID |
|---|---|---|
| STOP_TYPE | Integer | 1=bus, 2=GMB, 5=tram, 6=peak tram, 8=ferry |
| X | Integer | x-coordinate of stop location * |
| Y | Integer | y-coordinate of stop location * |
| LAST_UPDATE_DATE | Datetime | Date and time of last update |

# * Stop coordinates are provided in Hong Kong 1980 Grid system ( reference: https://www.geodetic.gov.hk/tc/gi/grid_index.htm )

| Delta change |  |  |
|---|---|---|
| Field STOP_ID |  |  |

# CHANGE

# Delta changes are compiled in csv format

# Description Stop ID [Add] The route record is new in current version of data file [Update] The route record has been updated in current

**version of data file [Delete] The route record was previously available but has been removed in current version of data file**

-----

| Table for | Fare |  |
|---|---|---|
| ROUTE_ID ROUTE_SEQ DAY_CODE ON_SEQ OFF_SEQ PRICE LAST_UPDATE_DATE | Integer Integer Integer Integer Integer Numeric Datetime | Route ID 1 = inbound or circular route; 2 = outbound 31 = Fare applicable to Mondays to Fridays only (except Public Holidays and School Holidays) 63 = Fare applicable to Mondays to Saturdays only (except Public Holidays and School Holidays) 266 = Fare applicable to Tuesdays and Thursdays only (except Public Holidays) 271 = Fare applicable to Mondays to Thursdays only (except Public Holidays) 272 = Fare applicable to Fridays only (except Public Holidays) 287 = Fare applicable to Mondays to Fridays only (except Public Holidays) 288 = Fare applicable to Saturdays only (except Public Holidays) 319 = Fare applicable to Mondays to Saturdays only (except Public Holidays) 320 = Fare applicable to Sundays only (except Public Holidays) 415 = Fare applicable to Mondays to Fridays only 416 = Fare applicable to Saturdays and Public Holidays only 447 = Fare applicable to Mondays to Saturdays only 448 = Fare applicable to Sundays and Public Holidays only 480 = Fare applicable to Saturdays, Sundays and Public Holidays only 511 = Fare applicable to All Days Stop sequence of pick-up stop Stop sequence of drop-off stop Fare from pick-up stop to drop-off stop Date and time of last update |

| Delta change |  |  |
|---|---|---|
| Field ROUTE_ID ROUTE_SEQ CHANGE | Description Route ID 1 = inbound or [Add] The route [Update] The [Delete] The of data file | circular route; 2 = outbound record is new in current version of data file route record has been updated in current version of data file route record was previously available but has been removed in current version |

# Delta changes are compiled in csv format

-----

# Table for Company Code

| Field | Data Type |
|---|---|
| COMPANY_CODE | String |
| COMPANY_NAMEC | String |
| COMPANY_NAMES | String |
| COMPANY_NAMEE | String |
| DESCRIPTION | String |

# Description Company / Operator code Company / Operator name in Chinese Company / Operator name in Simplified Chinese

# Company / Operator name in English Description of company code, for reference

## Dataset associations

These are upstream metadata associations. They do not validate resource schemas, document sections or live data values.

- [Routes and fares of public transport (XML)](/datasets/hk-td-tis_14-routes-fares-xml.md) · [HTML](/datasets/hk-td-tis_14-routes-fares-xml/) · [DATA.GOV.HK source record](<https://data.gov.hk/en-data/api/3/action/package_show?id=hk-td-tis_14-routes-fares-xml>)

## Attribution and reuse

Publisher listed by DATA.GOV.HK: Transport Department. Follow the original source PDF linked on this record.

Locate an applicable current public-reuse notice or obtain publisher clarification for the exact documentation; retain metadata and official source references in the meantime.

Publisher-independent publication is the user's editorial instruction. Recorded publisher classifications do not determine selection. It does not establish per-document legal clearance or a publisher permission grant.

No publisher-wide copyright or document-specific reuse scope has been established.

Official source PDF remains authoritative. Automatic extraction can omit or misformat content.

Publisher listed by DATA.GOV.HK and original source PDF are identified on this copy. Publisher listing does not establish authorship.

Rights in the original source material remain with its rights holders. Editorial selection does not establish a publisher permission grant or per-document legal clearance. Consult the original PDF and recorded terms.

This is a Markdown text conversion with formatting changes. The official source PDF remains authoritative. No provider endorsement is claimed.

This copy supports noncommercial educational reference to help readers understand and use upstream schemas and APIs. This project purpose does not restrict rights granted by the provider licence.

[Reuse evidence](<https://www.td.gov.hk/en/home/index.html>)

[Documents](/documents.md) · [HTML](/documents/td/ptroutefare-xml-dataspec-pdf/) · [Metadata JSON](/documents/td/ptroutefare-xml-dataspec-pdf.json)
