Transport Department
ptroutefare_xml_dataspec.pdf
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
其他格式
擷取文字;版面及圖表請參閱官方 PDF。
來源及使用條款
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.