﻿# Data\_Specification\_for\_STN\_Eng.pdf

[Official PDF](<http://static.data.gov.hk/td/special-traffic-news/en/Data_Specification_for_STN_Eng.pdf>) · Transport Department

Extracted text; check the official PDF for layout and figures. Images may not be represented in the extracted text; check the original PDF.

## Key sections

- [Special Traffic News](/documents/td/data-specification-for-stn-eng-pdf/#source-special-traffic-news)
- [Data Dictionary](/documents/td/data-specification-for-stn-eng-pdf/#source-data-dictionary)
- [Version 2.0](/documents/td/data-specification-for-stn-eng-pdf/#source-version-2-0)
- [10 Jun 2019](/documents/td/data-specification-for-stn-eng-pdf/#source-10-jun-2019)
- [1. Data Dictionary](/documents/td/data-specification-for-stn-eng-pdf/#source-1-data-dictionary)
- [2. Sample XML](/documents/td/data-specification-for-stn-eng-pdf/#source-2-sample-xml)
- [3. Example Response](/documents/td/data-specification-for-stn-eng-pdf/#source-3-example-response)



# 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>
```

## Dataset associations

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

- [Special Traffic News](/datasets/hk-td-tis_1-special-traffic-news.md) · [HTML](/datasets/hk-td-tis_1-special-traffic-news/) · [DATA.GOV.HK source record](<https://data.gov.hk/en-data/api/3/action/package_show?id=hk-td-tis_1-special-traffic-news>)

## 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/data-specification-for-stn-eng-pdf/) · [Metadata JSON](/documents/td/data-specification-for-stn-eng-pdf.json)
