Transport Department

Data_Specification_for_STN_Eng.pdf

Official PDF

Special Traffic News

Data Dictionary

Version 2.0

10 Jun 2019


1. Data Dictionary
Name Description Remarks
MsgID System generated unique identifier of the Message Data Type: Numeric Acceptable values: 0 to 18 digits (that is 999999999999999999)
CurrentStatus The 2 3 status of the message: represents newly published message represents the re-published message Data Type: Numeric Acceptable values: 2 or 3
ChinText Message (1) (2) "詳情請參看: text in long form, and in Traditional Chinese Remark: This field contains the message text in pure text format. If the message contains table(s), the table(s) in this field will be replaced by a text of https://www.td.gov.hk/tc/special_news/spnews.htm" Data Type: Text
ChinShort The message same as the field "ChinText", but may be in short form Data Type: Text
EngText The message same as the field "ChinText", but in English Data Type: Text
EngShort The message same as the field "EngText", but may be in short form Data Type: Text
ReferenceDate Reference Date of the message Data Type: Date Data format: Date Time Part (YYYY/MM/DD AM HH:MI:SS ) e.g. 2019/3/20 PM 05:58:54
IncidentRefNo Please ignore this field. N/A
CountofDistricts Number of districts this message applied to Data Type: Numeric Acceptable values: 0 to 18
District Name of district this message applied to Data Type: Text Acceptable values: Central & Western, Eastern, Islands, Kowloon City, Kwai Tsing, Kwun Tong, North, Sai Kung, Sha Tin, Sham Shui Po, Southern, Tai Po, Tsuen Wan, Tuen Mun, Wan Chai, Wong Tai Sin, Yau Tsim Mong, Yuen Long

2. Sample XML
<body>
<message>
<msgID> {the message id} </msgID>
<CurrentStatus> {the status code} </CurrentStatus>
<ChinText> {Message text (long) in Chinese} </ChinText>
<ChinShort> {Message text (short) in Chinese} </ChinShort>
<EngText> {Message text (long) in English} </EngText>
<EngShort> {Message text (short) in English} </EngShort>
<ReferenceDate> {Date} </ReferenceDate>
<IncidentRefNo> {the IncidentRefNo (internal use only, please ignore)} </IncidentRefNo>
<CountofDistricts> {number of districts this message applied to} </CountofDistricts>
<ListOfDistrict>
<District> {name of district this message applied to} </ District>
…
…
</ListOfDistrict>
</message>
…
…
</body>

3. Example Response
<message>
<msgID>48071</msgID>
<CurrentStatus>3</CurrentStatus>
<ChinText>因水管爆裂,屯門鄉事會路往屯門市中心方向近友愛路的中線現已封閉。駕駛人士只可使用餘下行車線行車。

現時上址交通繁忙。</ChinText>

<ChinShort>因水管爆裂,屯門鄉事會路往屯門市中心方向近友愛路的中線現已封閉。駕駛人士只可使用餘下行車線行車。

現時上址交通繁忙。</ChinShort>

<EngText>Due to watermain burst , the middle lane of Tuen Mun Heung Sze Wui Road Tuen Mun
Town Centre bound near Yau Oi Road is closed to all traffic. Only remaining lanes are still
available to motorists.
Traffic is busy now. </EngText>
<EngShort>Due to watermain burst , the middle lane of Tuen Mun Heung Sze Wui Road Tuen Mun
Town Centre bound near Yau Oi Road is closed to all traffic. Only remaining lanes are still
available to motorists.
Traffic is busy now. </EngShort>
<ReferenceDate> 2019/6/5 上午 09:39:24</ReferenceDate>
<IncidentRefNo></IncidentRefNo>
<CountofDistricts>0</CountofDistricts>
<ListOfDistrict>
</ListOfDistrict>
</message>
…
…
</body>
Related datasets
Other formats

Markdown · Metadata JSON

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

Source 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