> For the complete documentation index, see [llms.txt](https://motc-traffic.gitbook.io/motc-traffic/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://motc-traffic.gitbook.io/motc-traffic/lu-ce-she-shi-kong-jian-zi-liao-jian-he/yi-chang-lei-xing-dai-ma.md).

# 異常類型代碼

* 路段編碼原則

  路段編碼主要分為主碼14碼與副碼，主碼用於定義道路所在位置，副碼用於定義該道路之方向，詳見下圖。&#x20;

![](https://2342862023-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-MJfhmiBS8cv-ouSmllj%2F-MK4c2WibJwyZJjc2MO_%2F-MK4eQMyIy8v6jnQhIyP%2Fimage.png?alt=media\&token=3c0dc0f7-36d7-4e6e-9690-211255fb3542)

* 靜態異常類型代碼說明\
  靜態資料會根據路段編碼原則與XML靜態資料進行檢核，此方法迄今檢查8種不同的靜態資料異常代碼，詳細檢核內容如下圖。

| **Type** | **中文說明**                                      | **檢核層級** | **檔案類型**             |
| -------- | --------------------------------------------- | -------- | -------------------- |
| diag001  | 設備所偵測的LinkID與設備所在的位置距離未在規定範圍內                 | 1        | VD、CMS、CCTV、AVI、eTag |
| diag002  | 設備所在道路之路名碼未與偵測的LinkID所對應的路名碼相符                | 2        | VD、CMS、CCTV、AVI、eTag |
| diag003  | 設備所在道路之路名碼未與道路名稱及道路分類對應正確                     | 3        | VD、CMS、CCTV、AVI、eTag |
| diag004  | 設備所偵測的LinkID是否有對應正確的基礎路段方位(Bearing)           | 2        | VD                   |
| diag005  | 設備所偵測的LinkID是否有對應正確的基礎路段所屬道路方向(RoadDirection) | 2        | VD、CMS、CCTV、AVI、eTag |
| diag006  | 設備為單向偵測，卻有2個以上偵測的LinkID                       | 1        | VD                   |
| diag007  | 設備為雙向偵測，卻未有2個以上偵測的LinkID                      | 1        | VD                   |
| diag008  | 設備於該方向LinkID所能偵側車道數未小於實際車道數                   | 2        | VD                   |
