Transport Department
ptroutefare_kml_dataspec.pdf
Routes and Fares of Public Transport Data Specification (as of 29 June 2021)
Each route consists of the following attributes:
Field Data Type Description
| routeId | Integer | Route ID e.g. KMB, GMB |
|---|---|---|
| companyCode | String | please refer to the remark of Company Code # below and code table "Company_Code" |
| district | String | HKI, KLN, NT (only applicable for GMB) |
| routeNameC | String | Route Name in Chinese |
| routeNameS | String | Route Name in Simplified Chinese |
| routeNameE | String | Route Name in English |
| routeType | Integer | 1=bus( |
| serviceMode | 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 ( ),
specialType Integer 3=Time or day specific and separate fare for weekend and PHs ( )
| journeyTime | Integer | Journey Time |
|---|---|---|
| locStartNameC | String | Starting Point Location Name in Chinese |
| locStartNameS | String | Starting Point Location Name in Simplified Chinese |
| locStartNameE | String | Starting Point Location Name in English |
| locEndNameC | String | End Point Location Name in Chinese |
| locEndNameS | String | End Point Location Name in Simplified Chinese |
| locEndNameE | String | End Point Location Name in English |
| hyperlinkC | String | Headway hyperlink in Chinese |
| hyperlinkS | String | Headway hyperlink in Simplified Chinese |
| hyperlinkE | String | Headway hyperlink in English |
| fullFare | Numeric | Full fare |
| lastUpdateDate | Datetime | Date and time of last update |
Each en route stop consists of the following attributes:
Field Data Type Description
| coordinates | Object | Latitude and longitude of the stop coordiantes |
|---|---|---|
| routeSeq | Integer | 1 = outbound or circular route; 2 = inbound |
| stopSeq | Integer | Stop sequence of a route |
| stopId | Integer | Stop ID |
| stopPickDrop | Integer | 1 = Drop-off only; 2 = Pick-up only; 3 = Pick-up and drop-off |
| stopNameC | String | Stop name in Traditional Chinese |
| stopNameS | String | Stop name in Simplified Chinese |
| stopNameE | String | Stop name in English |
| # 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 |
其他格式
擷取文字;版面及圖表請參閱官方 PDF。
來源及使用條款
Source: Government of the Hong Kong Special Administrative Region and the Digital Policy Office or Transport Department identified on this record, via DATA.GOV.HK. Follow the original source PDF linked on this record.
Applies to Data and contents provided on DATA.GOV.HK: all twelve current source PDFs are explicitly linked on their official portal dataset pages with the portal Terms of Use. This is not a general permission for third-party websites linked from the portal.
Identify the source and acknowledge Government, relevant data-provider intellectual-property ownership and DATA.GOV.HK in every copy. Preserve original PDF links and clearly identify automatic text conversion and formatting changes.
Comply with the full Terms of Use, including its indemnification, disclaimer and limitation-of-liability clauses. The data are provided as-is without accuracy, completeness or non-infringement warranty.
The portal terms permit reproduction and redistribution, but this project applies only attributed noncommercial educational delivery. No additional commercial permission or legal guarantee is granted by this record.
Source-specific notices and third-party restrictions remain controlling; this evidence does not override them.
Copyright in the Government source material belongs to the Government of the Hong Kong Special Administrative Region. Source provider and original PDF are identified on this copy. Third-party material and source-specific exclusions remain outside this permission. The Government and the relevant data provider identified on this copy retain their intellectual-property rights in the source material.
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.