{
"openapi": "3.0.4",
"info": {
"title": "路況資訊",
"description": "本平臺提供涵蓋全國尺度之路況設備資料,包含VD、CMS、CCTV、ETag等資料服務API,歡迎各產政學單位介接使用。\n
利用本平臺開放資料進行各項應用服務開發時,請考量不同特性使用者(如:性別/身心障礙/老幼等)的需求,並歡迎回饋寶貴意見。\n
\n
本服務資料自2021年7月之後提供(不含當天)。\n
計費方式:\n
計次:10次/1點\n
計量:20MB/1點\n---\n##### API使用說明與注意事項:\n1. 如您尚未註冊平臺會員帳號,或未以帳號登入,您將僅能以「訪客模式」使用平臺服務,包含:限以瀏覽器存取,限使用`【基礎服務】`,且限制每個呼叫來源端IP每日存取至多20次。。\n2. 如您已註冊平臺會員帳號,請務必確保在存取服務(包含瀏覽器、程式呼叫API)時帶入您的API金鑰,方能以「會員模式」使用完整平臺服務,包含平臺各類資料服務,如`【基礎服務】`、`【進階服務】`、`【加值服務】`、`【歷史服務】`、`【圖資服務】`、`【第三方服務】`等。\n3. 建議您立即[註冊平臺會員帳號](/register),依您用量需求訂閱服務方案,並於[【會員中心->資料服務->API金鑰】](/user/dataservice/key)取得API金鑰(即Client Id和Client Secret資訊)。\n4. 會員訂閱服務方案之級別不同,將決定其API金鑰之存取頻率有不同限制,各個方案的存取頻率限制說明請參考[訂閱收費](/pricing)。\n5. 以瀏覽器帶入API金鑰之操作方式:請點選Swagger UI上的Authorize按鈕,依指示填入Client Id和Client Secret資訊並進行驗證,驗證完成後可開始於Swagger UI使用API。\n6. 以程式呼叫API帶入API金鑰之操作方式:請參考[範例程式](https://github.com/tdxmotc/SampleCode)。\n7. 不論您是以瀏覽器或是以程式呼叫API,所有服務存取行為均將被記錄並定期檢視,以確保系統資源使用的合理分配與避免遭受濫用。\n\nAPI OAS文本 :[請點我](https://tdx.transportdata.tw/webapi/File/Swagger/V3/4b4708cc-ab49-4037-a896-e24544d51609)",
"termsOfService": "https://tdx.transportdata.tw/term",
"contact": {
"name": "TDX客服信箱",
"email": "tdx@motc.gov.tw"
},
"version": "v2"
},
"servers": [
{
"url": "https://tdx.transportdata.tw/api/historical"
}
],
"paths": {
"/v2/Historical/Road/Traffic/VD/City/{City}": {
"get": {
"tags": [
"Traffic-City"
],
"summary": "取得指定[日期],[縣市]的車輛偵測器歷史資料",
"description": "取得指定[日期],[縣市]的車輛偵測器歷史資料",
"operationId": "VD_City",
"parameters": [
{
"name": "City",
"in": "path",
"description": "指定城市",
"required": true,
"schema": {
"title": "String",
"enum": [
"Taipei",
"NewTaipei",
"Taoyuan",
"Taichung",
"Tainan",
"Kaohsiung",
"Keelung",
"YilanCounty",
"TaitungCounty"
],
"type": "string",
"xml": { }
}
},
{
"name": "Dates",
"in": "query",
"description": "本歷史資料提供範圍為2021年7月至昨天(每天早上8點更新),欲查詢之日期 / 區間(日期格式為: 'yyyy-MM-dd',查詢多筆使用逗號','分隔,查詢區間使用波浪號'~'分隔,查詢天數最多7日,例如: '2021-07-01,2021-07-03~2021-07-05')",
"required": true,
"schema": {
"title": "DateList",
"type": "string",
"xml": {
"name": "DateList"
}
}
},
{
"name": "$top",
"in": "query",
"description": "取前幾筆",
"schema": {
"type": "integer",
"default": 30
}
},
{
"name": "$format",
"in": "query",
"description": "指定來源格式",
"required": true,
"schema": {
"enum": [
"JSONL",
"CSV"
],
"type": "string"
}
},
{
"name": "Meta",
"in": "query",
"description": "加入參數'?Meta=true'即可查詢此API服務的統計資訊",
"schema": {
"enum": [
"true"
],
"type": "string",
"default": ""
}
}
],
"responses": {
"200": {
"description": "OK",
"content": {
"text/ndjson": {
"schema": {
"title": "Array",
"type": "array",
"items": {
"$ref": "#/components/schemas/PTXPlus.Service.DTO.Historical.Specification.Traffic.V2.JSON.VD"
},
"xml": {
"name": "List`1"
}
},
"example": "{\"VDID\":\"string\",\"AuthorityCode\":\"string\",\"SubAuthorityCode\":\"string\",\"BiDirectional\":0,\"VDType\":0,\"DetectionType\":0,\"PositionLon\":0,\"PositionLat\":0,\"Geohash\":\"string\",\"CountyID\":\"string\",\"CountyName\":\"string\",\"TownID\":\"string\",\"TownName\":\"string\",\"RoadID\":\"string\",\"RoadName\":\"string\",\"LocationMile\":\"string\",\"SrcUpdateTime\":\"0001-01-01T00:00:00+08:06\",\"UpdateTime\":\"0001-01-01T00:00:00+08:06\",\"InfoTime\":\"0001-01-01T00:00:00+08:06\",\"InfoDate\":\"string\"}\n{\"VDID\":\"string\",\"AuthorityCode\":\"string\",\"SubAuthorityCode\":\"string\",\"BiDirectional\":0,\"VDType\":0,\"DetectionType\":0,\"PositionLon\":0,\"PositionLat\":0,\"Geohash\":\"string\",\"CountyID\":\"string\",\"CountyName\":\"string\",\"TownID\":\"string\",\"TownName\":\"string\",\"RoadID\":\"string\",\"RoadName\":\"string\",\"LocationMile\":\"string\",\"SrcUpdateTime\":\"0001-01-01T00:00:00+08:06\",\"UpdateTime\":\"0001-01-01T00:00:00+08:06\",\"InfoTime\":\"0001-01-01T00:00:00+08:06\",\"InfoDate\":\"string\"}"
},
"text/csv": {
"schema": {
"title": "Array",
"type": "array",
"items": {
"$ref": "#/components/schemas/PTXPlus.Service.DTO.Historical.Specification.Traffic.V2.CSV.VD"
},
"xml": {
"name": "List`1"
}
},
"example": "VDID,AuthorityCode,SubAuthorityCode,BiDirectional,DetectionLinksLinkID,DetectionLinksBearing,DetectionLinksRoadDirection,DetectionLinksLaneNum,DetectionLinksActualLaneNum,VDType,LocationType,DetectionType,PositionLon,PositionLat,Geohash,CountyID,CountyName,TownID,TownName,RoadID,RoadName,RoadClass,RoadSectionStart,RoadSectionEnd,LocationMile,SrcUpdateTime,UpdateTime,InfoTime,InfoDate\n\"string\",\"string\",\"string\",偵測單向,\"string\",,\"string\",0,0,0,,0,0,0,\"string\",\"string\",\"string\",\"string\",\"string\",\"string\",\"string\",,\"string\",\"string\",\"string\",0001-01-01T00:00:00+08:06,0001-01-01T00:00:00+08:06,0001-01-01T00:00:00+08:06,\"string\"\n\"string\",\"string\",\"string\",偵測單向,\"string\",,\"string\",0,0,0,,0,0,0,\"string\",\"string\",\"string\",\"string\",\"string\",\"string\",\"string\",,\"string\",\"string\",\"string\",0001-01-01T00:00:00+08:06,0001-01-01T00:00:00+08:06,0001-01-01T00:00:00+08:06,\"string\"\n"
}
}
},
"249": {
"description": "加入參數'?Meta=true'即可查詢此API服務的統計資訊",
"content": {
"text/ndjson": {
"schema": {
"$ref": "#/components/schemas/PTXPlus.Service.DTO.Shared.Specification.Base.MetaFilter.Meta"
}
},
"text/csv": {
"schema": {
"$ref": "#/components/schemas/PTXPlus.Service.DTO.Shared.Specification.Base.MetaFilter.Meta"
}
}
}
}
}
}
},
"/v2/Historical/Road/Traffic/Live/VD/City/{City}": {
"get": {
"tags": [
"Traffic-City"
],
"summary": "取得指定[日期],[縣市]的車輛偵測器即時路況歷史資料",
"description": "取得指定[日期],[縣市]的車輛偵測器即時路況歷史資料",
"operationId": "VDLive_City",
"parameters": [
{
"name": "City",
"in": "path",
"description": "指定城市",
"required": true,
"schema": {
"title": "String",
"enum": [
"Taipei",
"NewTaipei",
"Taoyuan",
"Taichung",
"Tainan",
"Kaohsiung",
"Keelung",
"YilanCounty",
"TaitungCounty"
],
"type": "string",
"xml": { }
}
},
{
"name": "Dates",
"in": "query",
"description": "本歷史資料提供範圍為2021年7月至昨天(每天早上8點更新),欲查詢之日期 / 區間(日期格式為: 'yyyy-MM-dd',查詢多筆使用逗號','分隔,查詢區間使用波浪號'~'分隔,查詢天數最多7日,例如: '2021-07-01,2021-07-03~2021-07-05')",
"required": true,
"schema": {
"title": "DateList",
"type": "string",
"xml": {
"name": "DateList"
}
}
},
{
"name": "$top",
"in": "query",
"description": "取前幾筆",
"schema": {
"type": "integer",
"default": 30
}
},
{
"name": "$format",
"in": "query",
"description": "指定來源格式",
"required": true,
"schema": {
"enum": [
"JSONL",
"CSV"
],
"type": "string"
}
},
{
"name": "Meta",
"in": "query",
"description": "加入參數'?Meta=true'即可查詢此API服務的統計資訊",
"schema": {
"enum": [
"true"
],
"type": "string",
"default": ""
}
}
],
"responses": {
"200": {
"description": "OK",
"content": {
"text/ndjson": {
"schema": {
"title": "Array",
"type": "array",
"items": {
"$ref": "#/components/schemas/PTXPlus.Service.DTO.Historical.Specification.Traffic.V2.JSON.VDLive"
},
"xml": {
"name": "List`1"
}
},
"example": "{\"VDID\":\"string\",\"HostAuthorityCode\":\"string\",\"AuthorityCode\":\"string\",\"SubAuthorityCode\":\"string\",\"Status\":0,\"DataCollectTime\":\"0001-01-01T00:00:00+08:06\",\"SrcUpdateTime\":\"0001-01-01T00:00:00+08:06\",\"UpdateTime\":\"0001-01-01T00:00:00+08:06\",\"InfoTime\":\"0001-01-01T00:00:00+08:06\",\"InfoDate\":\"string\"}\n{\"VDID\":\"string\",\"HostAuthorityCode\":\"string\",\"AuthorityCode\":\"string\",\"SubAuthorityCode\":\"string\",\"Status\":0,\"DataCollectTime\":\"0001-01-01T00:00:00+08:06\",\"SrcUpdateTime\":\"0001-01-01T00:00:00+08:06\",\"UpdateTime\":\"0001-01-01T00:00:00+08:06\",\"InfoTime\":\"0001-01-01T00:00:00+08:06\",\"InfoDate\":\"string\"}"
},
"text/csv": {
"schema": {
"title": "Array",
"type": "array",
"items": {
"$ref": "#/components/schemas/PTXPlus.Service.DTO.Historical.Specification.Traffic.V2.CSV.VDLive"
},
"xml": {
"name": "List`1"
}
},
"example": "VDID,HostAuthorityCode,AuthorityCode,SubAuthorityCode,LinkFlowsLinkID,LinkFlowsLanesLaneID,LinkFlowsLanesLaneType,LinkFlowsLanesSpeed,LinkFlowsLanesOccupancy,LinkFlowsLanesVehiclesVehicleType,LinkFlowsLanesVehiclesVolume,LinkFlowsLanesVehiclesSpeed,LinkFlowsLanesErrorDiags,LinkFlowsLanesRecurrentTimes,LinkFlowsLanesRecurrentZeroTimes,Status,DataCollectTime,SrcUpdateTime,UpdateTime,InfoTime,InfoDate\n\"string\",\"string\",\"string\",\"string\",\"string\",0,0,0,0,\"string\",0,,\"string\",0,0,正常,0001-01-01T00:00:00+08:06,0001-01-01T00:00:00+08:06,0001-01-01T00:00:00+08:06,0001-01-01T00:00:00+08:06,\"string\"\n\"string\",\"string\",\"string\",\"string\",\"string\",0,0,0,0,\"string\",0,,\"string\",0,0,正常,0001-01-01T00:00:00+08:06,0001-01-01T00:00:00+08:06,0001-01-01T00:00:00+08:06,0001-01-01T00:00:00+08:06,\"string\"\n"
}
}
},
"249": {
"description": "加入參數'?Meta=true'即可查詢此API服務的統計資訊",
"content": {
"text/ndjson": {
"schema": {
"$ref": "#/components/schemas/PTXPlus.Service.DTO.Shared.Specification.Base.MetaFilter.Meta"
}
},
"text/csv": {
"schema": {
"$ref": "#/components/schemas/PTXPlus.Service.DTO.Shared.Specification.Base.MetaFilter.Meta"
}
}
}
}
}
}
},
"/v2/Historical/Road/Traffic/CMS/City/{City}": {
"get": {
"tags": [
"Traffic-City"
],
"summary": "取得指定[日期],[縣市]的資訊可變標誌歷史資料",
"description": "取得指定[日期],[縣市]的資訊可變標誌歷史資料",
"operationId": "CMS_City",
"parameters": [
{
"name": "City",
"in": "path",
"description": "指定城市",
"required": true,
"schema": {
"title": "String",
"enum": [
"Taipei",
"NewTaipei",
"Taoyuan",
"Taichung",
"Tainan",
"Kaohsiung",
"Keelung",
"YunlinCounty",
"PingtungCounty",
"YilanCounty",
"TaitungCounty"
],
"type": "string",
"xml": { }
}
},
{
"name": "Dates",
"in": "query",
"description": "本歷史資料提供範圍為2021年7月至昨天(每天早上8點更新),欲查詢之日期 / 區間(日期格式為: 'yyyy-MM-dd',查詢多筆使用逗號','分隔,查詢區間使用波浪號'~'分隔,查詢天數最多7日,例如: '2021-07-01,2021-07-03~2021-07-05')",
"required": true,
"schema": {
"title": "DateList",
"type": "string",
"xml": {
"name": "DateList"
}
}
},
{
"name": "$top",
"in": "query",
"description": "取前幾筆",
"schema": {
"type": "integer",
"default": 30
}
},
{
"name": "$format",
"in": "query",
"description": "指定來源格式",
"required": true,
"schema": {
"enum": [
"JSONL",
"CSV"
],
"type": "string"
}
},
{
"name": "Meta",
"in": "query",
"description": "加入參數'?Meta=true'即可查詢此API服務的統計資訊",
"schema": {
"enum": [
"true"
],
"type": "string",
"default": ""
}
}
],
"responses": {
"200": {
"description": "OK",
"content": {
"text/ndjson": {
"schema": {
"title": "Array",
"type": "array",
"items": {
"$ref": "#/components/schemas/PTXPlus.Service.DTO.Historical.Specification.Traffic.V2.JSON.CMS"
},
"xml": {
"name": "List`1"
}
},
"example": "{\"CMSID\":\"string\",\"AuthorityCode\":\"string\",\"SubAuthorityCode\":\"string\",\"LinkID\":\"string\",\"LocationType\":0,\"PositionLon\":0,\"PositionLat\":0,\"Geohash\":\"string\",\"CountyID\":\"string\",\"CountyName\":\"string\",\"TownID\":\"string\",\"TownName\":\"string\",\"RoadID\":\"string\",\"RoadName\":\"string\",\"RoadDirection\":\"string\",\"LocationMile\":\"string\",\"LayoutMapURL\":\"string\",\"SrcUpdateTime\":\"0001-01-01T00:00:00+08:06\",\"UpdateTime\":\"0001-01-01T00:00:00+08:06\",\"InfoTime\":\"0001-01-01T00:00:00+08:06\",\"InfoDate\":\"string\"}\n{\"CMSID\":\"string\",\"AuthorityCode\":\"string\",\"SubAuthorityCode\":\"string\",\"LinkID\":\"string\",\"LocationType\":0,\"PositionLon\":0,\"PositionLat\":0,\"Geohash\":\"string\",\"CountyID\":\"string\",\"CountyName\":\"string\",\"TownID\":\"string\",\"TownName\":\"string\",\"RoadID\":\"string\",\"RoadName\":\"string\",\"RoadDirection\":\"string\",\"LocationMile\":\"string\",\"LayoutMapURL\":\"string\",\"SrcUpdateTime\":\"0001-01-01T00:00:00+08:06\",\"UpdateTime\":\"0001-01-01T00:00:00+08:06\",\"InfoTime\":\"0001-01-01T00:00:00+08:06\",\"InfoDate\":\"string\"}"
},
"text/csv": {
"schema": {
"title": "Array",
"type": "array",
"items": {
"$ref": "#/components/schemas/PTXPlus.Service.DTO.Historical.Specification.Traffic.V2.CSV.CMS"
},
"xml": {
"name": "List`1"
}
},
"example": "CMSID,AuthorityCode,SubAuthorityCode,LinkID,LocationType,PositionLon,PositionLat,Geohash,CountyID,CountyName,TownID,TownName,RoadID,RoadName,RoadClass,RoadDirection,RoadSectionStart,RoadSectionEnd,LocationMile,LayoutMapURL,SrcUpdateTime,UpdateTime,InfoTime,InfoDate\n\"string\",\"string\",\"string\",\"string\",0,0,0,\"string\",\"string\",\"string\",\"string\",\"string\",\"string\",\"string\",,\"string\",\"string\",\"string\",\"string\",\"string\",0001-01-01T00:00:00+08:06,0001-01-01T00:00:00+08:06,0001-01-01T00:00:00+08:06,\"string\"\n\"string\",\"string\",\"string\",\"string\",0,0,0,\"string\",\"string\",\"string\",\"string\",\"string\",\"string\",\"string\",,\"string\",\"string\",\"string\",\"string\",\"string\",0001-01-01T00:00:00+08:06,0001-01-01T00:00:00+08:06,0001-01-01T00:00:00+08:06,\"string\"\n"
}
}
},
"249": {
"description": "加入參數'?Meta=true'即可查詢此API服務的統計資訊",
"content": {
"text/ndjson": {
"schema": {
"$ref": "#/components/schemas/PTXPlus.Service.DTO.Shared.Specification.Base.MetaFilter.Meta"
}
},
"text/csv": {
"schema": {
"$ref": "#/components/schemas/PTXPlus.Service.DTO.Shared.Specification.Base.MetaFilter.Meta"
}
}
}
}
}
}
},
"/v2/Historical/Road/Traffic/Live/CMS/City/{City}": {
"get": {
"tags": [
"Traffic-City"
],
"summary": "取得指定[日期],[縣市]的資訊可變標誌即時資訊歷史資料",
"description": "取得指定[日期],[縣市]的資訊可變標誌即時資訊歷史資料",
"operationId": "CMSLive_City",
"parameters": [
{
"name": "City",
"in": "path",
"description": "指定城市",
"required": true,
"schema": {
"title": "String",
"enum": [
"Taipei",
"NewTaipei",
"Taoyuan",
"Taichung",
"Tainan",
"Kaohsiung",
"Keelung",
"ChanghuaCounty",
"YunlinCounty",
"PingtungCounty",
"YilanCounty",
"TaitungCounty"
],
"type": "string",
"xml": { }
}
},
{
"name": "Dates",
"in": "query",
"description": "本歷史資料提供範圍為2021年7月至昨天(每天早上8點更新),欲查詢之日期 / 區間(日期格式為: 'yyyy-MM-dd',查詢多筆使用逗號','分隔,查詢區間使用波浪號'~'分隔,查詢天數最多7日,例如: '2021-07-01,2021-07-03~2021-07-05')",
"required": true,
"schema": {
"title": "DateList",
"type": "string",
"xml": {
"name": "DateList"
}
}
},
{
"name": "$top",
"in": "query",
"description": "取前幾筆",
"schema": {
"type": "integer",
"default": 30
}
},
{
"name": "$format",
"in": "query",
"description": "指定來源格式",
"required": true,
"schema": {
"enum": [
"JSONL",
"CSV"
],
"type": "string"
}
},
{
"name": "Meta",
"in": "query",
"description": "加入參數'?Meta=true'即可查詢此API服務的統計資訊",
"schema": {
"enum": [
"true"
],
"type": "string",
"default": ""
}
}
],
"responses": {
"200": {
"description": "OK",
"content": {
"text/ndjson": {
"schema": {
"title": "Array",
"type": "array",
"items": {
"$ref": "#/components/schemas/PTXPlus.Service.DTO.Historical.Specification.Traffic.V2.JSON.CMSLive"
},
"xml": {
"name": "List`1"
}
},
"example": "{\"CMSID\":\"string\",\"AuthorityCode\":\"string\",\"SubAuthorityCode\":\"string\",\"MessageStatus\":0,\"Status\":0,\"DataCollectTime\":\"0001-01-01T00:00:00+08:06\",\"SrcUpdateTime\":\"0001-01-01T00:00:00+08:06\",\"UpdateTime\":\"0001-01-01T00:00:00+08:06\",\"InfoTime\":\"0001-01-01T00:00:00+08:06\",\"InfoDate\":\"string\"}\n{\"CMSID\":\"string\",\"AuthorityCode\":\"string\",\"SubAuthorityCode\":\"string\",\"MessageStatus\":0,\"Status\":0,\"DataCollectTime\":\"0001-01-01T00:00:00+08:06\",\"SrcUpdateTime\":\"0001-01-01T00:00:00+08:06\",\"UpdateTime\":\"0001-01-01T00:00:00+08:06\",\"InfoTime\":\"0001-01-01T00:00:00+08:06\",\"InfoDate\":\"string\"}"
},
"text/csv": {
"schema": {
"title": "Array",
"type": "array",
"items": {
"$ref": "#/components/schemas/PTXPlus.Service.DTO.Historical.Specification.Traffic.V2.CSV.CMSLive"
},
"xml": {
"name": "List`1"
}
},
"example": "CMSID,AuthorityCode,SubAuthorityCode,MessageStatus,MessagesText,MessagesImage,MessagesType,MessagesPriority,Status,DataCollectTime,SrcUpdateTime,UpdateTime,InfoTime,InfoDate\n\"string\",\"string\",\"string\",目前無資料顯示,\"string\",\"string\",,,正常,0001-01-01T00:00:00+08:06,0001-01-01T00:00:00+08:06,0001-01-01T00:00:00+08:06,0001-01-01T00:00:00+08:06,\"string\"\n\"string\",\"string\",\"string\",目前無資料顯示,\"string\",\"string\",,,正常,0001-01-01T00:00:00+08:06,0001-01-01T00:00:00+08:06,0001-01-01T00:00:00+08:06,0001-01-01T00:00:00+08:06,\"string\"\n"
}
}
},
"249": {
"description": "加入參數'?Meta=true'即可查詢此API服務的統計資訊",
"content": {
"text/ndjson": {
"schema": {
"$ref": "#/components/schemas/PTXPlus.Service.DTO.Shared.Specification.Base.MetaFilter.Meta"
}
},
"text/csv": {
"schema": {
"$ref": "#/components/schemas/PTXPlus.Service.DTO.Shared.Specification.Base.MetaFilter.Meta"
}
}
}
}
}
}
},
"/v2/Historical/Road/Traffic/CCTV/City/{City}": {
"get": {
"tags": [
"Traffic-City"
],
"summary": "取得指定[日期],[縣市]的閉路電視攝影機歷史資料",
"description": "取得指定[日期],[縣市]的閉路電視攝影機歷史資料",
"operationId": "CCTV_City",
"parameters": [
{
"name": "City",
"in": "path",
"description": "指定城市",
"required": true,
"schema": {
"title": "String",
"enum": [
"Taipei",
"NewTaipei",
"Taoyuan",
"Taichung",
"Tainan",
"Keelung",
"ChanghuaCounty",
"YunlinCounty",
"PingtungCounty",
"YilanCounty"
],
"type": "string",
"xml": { }
}
},
{
"name": "Dates",
"in": "query",
"description": "本歷史資料提供範圍為2021年7月至昨天(每天早上8點更新),欲查詢之日期 / 區間(日期格式為: 'yyyy-MM-dd',查詢多筆使用逗號','分隔,查詢區間使用波浪號'~'分隔,查詢天數最多7日,例如: '2021-07-01,2021-07-03~2021-07-05')",
"required": true,
"schema": {
"title": "DateList",
"type": "string",
"xml": {
"name": "DateList"
}
}
},
{
"name": "$top",
"in": "query",
"description": "取前幾筆",
"schema": {
"type": "integer",
"default": 30
}
},
{
"name": "$format",
"in": "query",
"description": "指定來源格式",
"required": true,
"schema": {
"enum": [
"JSONL",
"CSV"
],
"type": "string"
}
},
{
"name": "Meta",
"in": "query",
"description": "加入參數'?Meta=true'即可查詢此API服務的統計資訊",
"schema": {
"enum": [
"true"
],
"type": "string",
"default": ""
}
}
],
"responses": {
"200": {
"description": "OK",
"content": {
"text/ndjson": {
"schema": {
"title": "Array",
"type": "array",
"items": {
"$ref": "#/components/schemas/PTXPlus.Service.DTO.Historical.Specification.Traffic.V2.JSON.CCTV"
},
"xml": {
"name": "List`1"
}
},
"example": "{\"CCTVID\":\"string\",\"AuthorityCode\":\"string\",\"SubAuthorityCode\":\"string\",\"LinkID\":\"string\",\"VideoStreamURL\":\"string\",\"LocationType\":0,\"PositionLon\":0,\"PositionLat\":0,\"Geohash\":\"string\",\"CountyID\":\"string\",\"CountyName\":\"string\",\"TownID\":\"string\",\"TownName\":\"string\",\"RoadID\":\"string\",\"RoadName\":\"string\",\"RoadDirection\":\"string\",\"LocationMile\":\"string\",\"LayoutMapURL\":\"string\",\"SrcUpdateTime\":\"0001-01-01T00:00:00+08:06\",\"UpdateTime\":\"0001-01-01T00:00:00+08:06\",\"InfoTime\":\"0001-01-01T00:00:00+08:06\",\"InfoDate\":\"string\"}\n{\"CCTVID\":\"string\",\"AuthorityCode\":\"string\",\"SubAuthorityCode\":\"string\",\"LinkID\":\"string\",\"VideoStreamURL\":\"string\",\"LocationType\":0,\"PositionLon\":0,\"PositionLat\":0,\"Geohash\":\"string\",\"CountyID\":\"string\",\"CountyName\":\"string\",\"TownID\":\"string\",\"TownName\":\"string\",\"RoadID\":\"string\",\"RoadName\":\"string\",\"RoadDirection\":\"string\",\"LocationMile\":\"string\",\"LayoutMapURL\":\"string\",\"SrcUpdateTime\":\"0001-01-01T00:00:00+08:06\",\"UpdateTime\":\"0001-01-01T00:00:00+08:06\",\"InfoTime\":\"0001-01-01T00:00:00+08:06\",\"InfoDate\":\"string\"}"
},
"text/csv": {
"schema": {
"title": "Array",
"type": "array",
"items": {
"$ref": "#/components/schemas/PTXPlus.Service.DTO.Historical.Specification.Traffic.V2.CSV.CCTV"
},
"xml": {
"name": "List`1"
}
},
"example": "CCTVID,AuthorityCode,SubAuthorityCode,LinkID,LookingViewsBearing,LookingViewsImage,VideoStreamURL,LocationType,PositionLon,PositionLat,Geohash,CountyID,CountyName,TownID,TownName,RoadID,RoadName,RoadClass,RoadDirection,RoadSectionStart,RoadSectionEnd,LocationMile,LayoutMapURL,SrcUpdateTime,UpdateTime,InfoTime,InfoDate\n\"string\",\"string\",\"string\",\"string\",,\"string\",\"string\",0,0,0,\"string\",\"string\",\"string\",\"string\",\"string\",\"string\",\"string\",,\"string\",\"string\",\"string\",\"string\",\"string\",0001-01-01T00:00:00+08:06,0001-01-01T00:00:00+08:06,0001-01-01T00:00:00+08:06,\"string\"\n\"string\",\"string\",\"string\",\"string\",,\"string\",\"string\",0,0,0,\"string\",\"string\",\"string\",\"string\",\"string\",\"string\",\"string\",,\"string\",\"string\",\"string\",\"string\",\"string\",0001-01-01T00:00:00+08:06,0001-01-01T00:00:00+08:06,0001-01-01T00:00:00+08:06,\"string\"\n"
}
}
},
"249": {
"description": "加入參數'?Meta=true'即可查詢此API服務的統計資訊",
"content": {
"text/ndjson": {
"schema": {
"$ref": "#/components/schemas/PTXPlus.Service.DTO.Shared.Specification.Base.MetaFilter.Meta"
}
},
"text/csv": {
"schema": {
"$ref": "#/components/schemas/PTXPlus.Service.DTO.Shared.Specification.Base.MetaFilter.Meta"
}
}
}
}
}
}
},
"/v2/Historical/Road/Traffic/ETag/City/{City}": {
"get": {
"tags": [
"Traffic-City"
],
"summary": "取得指定[日期],[縣市]的電子標籤門架歷史資料",
"description": "取得指定[日期],[縣市]的電子標籤門架歷史資料",
"operationId": "ETag_City",
"parameters": [
{
"name": "City",
"in": "path",
"description": "指定城市",
"required": true,
"schema": {
"title": "String",
"enum": [
"Taipei",
"NewTaipei",
"Taoyuan",
"Taichung",
"Tainan",
"Keelung",
"ChanghuaCounty",
"YunlinCounty",
"PingtungCounty",
"YilanCounty",
"TaitungCounty"
],
"type": "string",
"xml": { }
}
},
{
"name": "Dates",
"in": "query",
"description": "本歷史資料提供範圍為2021年7月至昨天(每天早上8點更新),欲查詢之日期 / 區間(日期格式為: 'yyyy-MM-dd',查詢多筆使用逗號','分隔,查詢區間使用波浪號'~'分隔,查詢天數最多7日,例如: '2021-07-01,2021-07-03~2021-07-05')",
"required": true,
"schema": {
"title": "DateList",
"type": "string",
"xml": {
"name": "DateList"
}
}
},
{
"name": "$top",
"in": "query",
"description": "取前幾筆",
"schema": {
"type": "integer",
"default": 30
}
},
{
"name": "$format",
"in": "query",
"description": "指定來源格式",
"required": true,
"schema": {
"enum": [
"JSONL",
"CSV"
],
"type": "string"
}
},
{
"name": "Meta",
"in": "query",
"description": "加入參數'?Meta=true'即可查詢此API服務的統計資訊",
"schema": {
"enum": [
"true"
],
"type": "string",
"default": ""
}
}
],
"responses": {
"200": {
"description": "OK",
"content": {
"text/ndjson": {
"schema": {
"title": "Array",
"type": "array",
"items": {
"$ref": "#/components/schemas/PTXPlus.Service.DTO.Historical.Specification.Traffic.V2.JSON.ETag"
},
"xml": {
"name": "List`1"
}
},
"example": "{\"ETagGantryID\":\"string\",\"AuthorityCode\":\"string\",\"SubAuthorityCode\":\"string\",\"LinkID\":\"string\",\"LocationType\":0,\"PositionLon\":0,\"PositionLat\":0,\"Geohash\":\"string\",\"CountyID\":\"string\",\"CountyName\":\"string\",\"TownID\":\"string\",\"TownName\":\"string\",\"RoadID\":\"string\",\"RoadName\":\"string\",\"RoadDirection\":\"string\",\"LocationMile\":\"string\",\"LayoutMapURL\":\"string\",\"SrcUpdateTime\":\"0001-01-01T00:00:00+08:06\",\"UpdateTime\":\"0001-01-01T00:00:00+08:06\",\"InfoTime\":\"0001-01-01T00:00:00+08:06\",\"InfoDate\":\"string\"}\n{\"ETagGantryID\":\"string\",\"AuthorityCode\":\"string\",\"SubAuthorityCode\":\"string\",\"LinkID\":\"string\",\"LocationType\":0,\"PositionLon\":0,\"PositionLat\":0,\"Geohash\":\"string\",\"CountyID\":\"string\",\"CountyName\":\"string\",\"TownID\":\"string\",\"TownName\":\"string\",\"RoadID\":\"string\",\"RoadName\":\"string\",\"RoadDirection\":\"string\",\"LocationMile\":\"string\",\"LayoutMapURL\":\"string\",\"SrcUpdateTime\":\"0001-01-01T00:00:00+08:06\",\"UpdateTime\":\"0001-01-01T00:00:00+08:06\",\"InfoTime\":\"0001-01-01T00:00:00+08:06\",\"InfoDate\":\"string\"}"
},
"text/csv": {
"schema": {
"title": "Array",
"type": "array",
"items": {
"$ref": "#/components/schemas/PTXPlus.Service.DTO.Historical.Specification.Traffic.V2.CSV.ETag"
},
"xml": {
"name": "List`1"
}
},
"example": "ETagGantryID,AuthorityCode,SubAuthorityCode,LinkID,LocationType,PositionLon,PositionLat,Geohash,CountyID,CountyName,TownID,TownName,RoadID,RoadName,RoadClass,RoadDirection,RoadSectionStart,RoadSectionEnd,LocationMile,LayoutMapURL,SrcUpdateTime,UpdateTime,InfoTime,InfoDate\n\"string\",\"string\",\"string\",\"string\",0,0,0,\"string\",\"string\",\"string\",\"string\",\"string\",\"string\",\"string\",,\"string\",\"string\",\"string\",\"string\",\"string\",0001-01-01T00:00:00+08:06,0001-01-01T00:00:00+08:06,0001-01-01T00:00:00+08:06,\"string\"\n\"string\",\"string\",\"string\",\"string\",0,0,0,\"string\",\"string\",\"string\",\"string\",\"string\",\"string\",\"string\",,\"string\",\"string\",\"string\",\"string\",\"string\",0001-01-01T00:00:00+08:06,0001-01-01T00:00:00+08:06,0001-01-01T00:00:00+08:06,\"string\"\n"
}
}
},
"249": {
"description": "加入參數'?Meta=true'即可查詢此API服務的統計資訊",
"content": {
"text/ndjson": {
"schema": {
"$ref": "#/components/schemas/PTXPlus.Service.DTO.Shared.Specification.Base.MetaFilter.Meta"
}
},
"text/csv": {
"schema": {
"$ref": "#/components/schemas/PTXPlus.Service.DTO.Shared.Specification.Base.MetaFilter.Meta"
}
}
}
}
}
}
},
"/v2/Historical/Road/Traffic/ETagPair/City/{City}": {
"get": {
"tags": [
"Traffic-City"
],
"summary": "取得指定[日期],[縣市]的電子標籤門架配對路段歷史資料",
"description": "取得指定[日期],[縣市]的電子標籤門架配對路段歷史資料",
"operationId": "ETagPair_City",
"parameters": [
{
"name": "City",
"in": "path",
"description": "指定城市",
"required": true,
"schema": {
"title": "String",
"enum": [
"Taipei",
"NewTaipei",
"Taoyuan",
"Taichung",
"Tainan",
"Keelung",
"ChanghuaCounty",
"YunlinCounty",
"PingtungCounty",
"YilanCounty",
"TaitungCounty"
],
"type": "string",
"xml": { }
}
},
{
"name": "Dates",
"in": "query",
"description": "本歷史資料提供範圍為2021年7月至昨天(每天早上8點更新),欲查詢之日期 / 區間(日期格式為: 'yyyy-MM-dd',查詢多筆使用逗號','分隔,查詢區間使用波浪號'~'分隔,查詢天數最多7日,例如: '2021-07-01,2021-07-03~2021-07-05')",
"required": true,
"schema": {
"title": "DateList",
"type": "string",
"xml": {
"name": "DateList"
}
}
},
{
"name": "$top",
"in": "query",
"description": "取前幾筆",
"schema": {
"type": "integer",
"default": 30
}
},
{
"name": "$format",
"in": "query",
"description": "指定來源格式",
"required": true,
"schema": {
"enum": [
"JSONL",
"CSV"
],
"type": "string"
}
},
{
"name": "Meta",
"in": "query",
"description": "加入參數'?Meta=true'即可查詢此API服務的統計資訊",
"schema": {
"enum": [
"true"
],
"type": "string",
"default": ""
}
}
],
"responses": {
"200": {
"description": "OK",
"content": {
"text/ndjson": {
"schema": {
"title": "Array",
"type": "array",
"items": {
"$ref": "#/components/schemas/PTXPlus.Service.DTO.Historical.Specification.Traffic.V2.JSON.ETagPair"
},
"xml": {
"name": "List`1"
}
},
"example": "{\"ETagPairID\":\"string\",\"AuthorityCode\":\"string\",\"SubAuthorityCode\":\"string\",\"StartETagGantryID\":\"string\",\"EndETagGantryID\":\"string\",\"Description\":\"string\",\"Distance\":0,\"StartLinkID\":\"string\",\"EndLinkID\":\"string\",\"SectionID\":\"string\",\"Geometry\":\"string\",\"SrcUpdateTime\":\"0001-01-01T00:00:00+08:06\",\"UpdateTime\":\"0001-01-01T00:00:00+08:06\",\"InfoTime\":\"0001-01-01T00:00:00+08:06\",\"InfoDate\":\"string\"}\n{\"ETagPairID\":\"string\",\"AuthorityCode\":\"string\",\"SubAuthorityCode\":\"string\",\"StartETagGantryID\":\"string\",\"EndETagGantryID\":\"string\",\"Description\":\"string\",\"Distance\":0,\"StartLinkID\":\"string\",\"EndLinkID\":\"string\",\"SectionID\":\"string\",\"Geometry\":\"string\",\"SrcUpdateTime\":\"0001-01-01T00:00:00+08:06\",\"UpdateTime\":\"0001-01-01T00:00:00+08:06\",\"InfoTime\":\"0001-01-01T00:00:00+08:06\",\"InfoDate\":\"string\"}"
},
"text/csv": {
"schema": {
"title": "Array",
"type": "array",
"items": {
"$ref": "#/components/schemas/PTXPlus.Service.DTO.Historical.Specification.Traffic.V2.CSV.ETagPair"
},
"xml": {
"name": "List`1"
}
},
"example": "ETagPairID,AuthorityCode,SubAuthorityCode,StartETagGantryID,EndETagGantryID,Description,Distance,StartLinkID,EndLinkID,LinkIDsLinkIDs,SectionID,Geometry,SrcUpdateTime,UpdateTime,InfoTime,InfoDate\n\"string\",\"string\",\"string\",\"string\",\"string\",\"string\",0,\"string\",\"string\",\"string\",\"string\",\"string\",0001-01-01T00:00:00+08:06,0001-01-01T00:00:00+08:06,0001-01-01T00:00:00+08:06,\"string\"\n\"string\",\"string\",\"string\",\"string\",\"string\",\"string\",0,\"string\",\"string\",\"string\",\"string\",\"string\",0001-01-01T00:00:00+08:06,0001-01-01T00:00:00+08:06,0001-01-01T00:00:00+08:06,\"string\"\n"
}
}
},
"249": {
"description": "加入參數'?Meta=true'即可查詢此API服務的統計資訊",
"content": {
"text/ndjson": {
"schema": {
"$ref": "#/components/schemas/PTXPlus.Service.DTO.Shared.Specification.Base.MetaFilter.Meta"
}
},
"text/csv": {
"schema": {
"$ref": "#/components/schemas/PTXPlus.Service.DTO.Shared.Specification.Base.MetaFilter.Meta"
}
}
}
}
}
}
},
"/v2/Historical/Road/Traffic/Live/ETag/City/{City}": {
"get": {
"tags": [
"Traffic-City"
],
"summary": "取得指定[日期],[縣市]的電子標籤門架配對路段即時路況歷史資料",
"description": "取得指定[日期],[縣市]的電子標籤門架配對路段即時路況歷史資料",
"operationId": "ETagPairLive_City",
"parameters": [
{
"name": "City",
"in": "path",
"description": "指定城市",
"required": true,
"schema": {
"title": "String",
"enum": [
"Taipei",
"NewTaipei",
"Taoyuan",
"Taichung",
"Tainan",
"Keelung",
"ChanghuaCounty",
"YunlinCounty",
"PingtungCounty",
"YilanCounty",
"TaitungCounty"
],
"type": "string",
"xml": { }
}
},
{
"name": "Dates",
"in": "query",
"description": "本歷史資料提供範圍為2021年7月至昨天(每天早上8點更新),欲查詢之日期 / 區間(日期格式為: 'yyyy-MM-dd',查詢多筆使用逗號','分隔,查詢區間使用波浪號'~'分隔,查詢天數最多7日,例如: '2021-07-01,2021-07-03~2021-07-05')",
"required": true,
"schema": {
"title": "DateList",
"type": "string",
"xml": {
"name": "DateList"
}
}
},
{
"name": "$top",
"in": "query",
"description": "取前幾筆",
"schema": {
"type": "integer",
"default": 30
}
},
{
"name": "$format",
"in": "query",
"description": "指定來源格式",
"required": true,
"schema": {
"enum": [
"JSONL",
"CSV"
],
"type": "string"
}
},
{
"name": "Meta",
"in": "query",
"description": "加入參數'?Meta=true'即可查詢此API服務的統計資訊",
"schema": {
"enum": [
"true"
],
"type": "string",
"default": ""
}
}
],
"responses": {
"200": {
"description": "OK",
"content": {
"text/ndjson": {
"schema": {
"title": "Array",
"type": "array",
"items": {
"$ref": "#/components/schemas/PTXPlus.Service.DTO.Historical.Specification.Traffic.V2.JSON.ETagPairLive"
},
"xml": {
"name": "List`1"
}
},
"example": "{\"ETagPairID\":\"string\",\"AuthorityCode\":\"string\",\"SubAuthorityCode\":\"string\",\"StartETagStatus\":0,\"EndETagStatus\":0,\"StartTime\":\"0001-01-01T00:00:00+08:06\",\"EndTime\":\"0001-01-01T00:00:00+08:06\",\"DataCollectTime\":\"0001-01-01T00:00:00+08:06\",\"SrcUpdateTime\":\"0001-01-01T00:00:00+08:06\",\"UpdateTime\":\"0001-01-01T00:00:00+08:06\",\"InfoTime\":\"0001-01-01T00:00:00+08:06\",\"InfoDate\":\"string\"}\n{\"ETagPairID\":\"string\",\"AuthorityCode\":\"string\",\"SubAuthorityCode\":\"string\",\"StartETagStatus\":0,\"EndETagStatus\":0,\"StartTime\":\"0001-01-01T00:00:00+08:06\",\"EndTime\":\"0001-01-01T00:00:00+08:06\",\"DataCollectTime\":\"0001-01-01T00:00:00+08:06\",\"SrcUpdateTime\":\"0001-01-01T00:00:00+08:06\",\"UpdateTime\":\"0001-01-01T00:00:00+08:06\",\"InfoTime\":\"0001-01-01T00:00:00+08:06\",\"InfoDate\":\"string\"}"
},
"text/csv": {
"schema": {
"title": "Array",
"type": "array",
"items": {
"$ref": "#/components/schemas/PTXPlus.Service.DTO.Historical.Specification.Traffic.V2.CSV.ETagPairLive"
},
"xml": {
"name": "List`1"
}
},
"example": "ETagPairID,AuthorityCode,SubAuthorityCode,StartETagStatus,EndETagStatus,FlowsVehicleType,FlowsTravelTime,FlowsStandardDeviation,FlowsSpaceMeanSpeed,FlowsVehicleCount,StartTime,EndTime,DataCollectTime,SrcUpdateTime,UpdateTime,InfoTime,InfoDate\n\"string\",\"string\",\"string\",正常,正常,0,0,0,0,0,0001-01-01T00:00:00+08:06,0001-01-01T00:00:00+08:06,0001-01-01T00:00:00+08:06,0001-01-01T00:00:00+08:06,0001-01-01T00:00:00+08:06,0001-01-01T00:00:00+08:06,\"string\"\n\"string\",\"string\",\"string\",正常,正常,0,0,0,0,0,0001-01-01T00:00:00+08:06,0001-01-01T00:00:00+08:06,0001-01-01T00:00:00+08:06,0001-01-01T00:00:00+08:06,0001-01-01T00:00:00+08:06,0001-01-01T00:00:00+08:06,\"string\"\n"
}
}
},
"249": {
"description": "加入參數'?Meta=true'即可查詢此API服務的統計資訊",
"content": {
"text/ndjson": {
"schema": {
"$ref": "#/components/schemas/PTXPlus.Service.DTO.Shared.Specification.Base.MetaFilter.Meta"
}
},
"text/csv": {
"schema": {
"$ref": "#/components/schemas/PTXPlus.Service.DTO.Shared.Specification.Base.MetaFilter.Meta"
}
}
}
}
}
}
},
"/v2/Historical/Road/Traffic/Section/City/{City}": {
"get": {
"tags": [
"Traffic-City"
],
"summary": "取得指定[日期],[縣市]的發佈路段歷史資料",
"description": "取得指定[日期],[縣市]的發佈路段歷史資料",
"operationId": "Section_City",
"parameters": [
{
"name": "City",
"in": "path",
"description": "指定城市",
"required": true,
"schema": {
"title": "String",
"enum": [
"Taipei",
"NewTaipei",
"Taoyuan",
"Taichung",
"Tainan",
"Keelung",
"ChanghuaCounty",
"YilanCounty"
],
"type": "string",
"xml": { }
}
},
{
"name": "Dates",
"in": "query",
"description": "本歷史資料提供範圍為2021年7月至昨天(每天早上8點更新),欲查詢之日期 / 區間(日期格式為: 'yyyy-MM-dd',查詢多筆使用逗號','分隔,查詢區間使用波浪號'~'分隔,查詢天數最多7日,例如: '2021-07-01,2021-07-03~2021-07-05')",
"required": true,
"schema": {
"title": "DateList",
"type": "string",
"xml": {
"name": "DateList"
}
}
},
{
"name": "$top",
"in": "query",
"description": "取前幾筆",
"schema": {
"type": "integer",
"default": 30
}
},
{
"name": "$format",
"in": "query",
"description": "指定來源格式",
"required": true,
"schema": {
"enum": [
"JSONL",
"CSV"
],
"type": "string"
}
},
{
"name": "Meta",
"in": "query",
"description": "加入參數'?Meta=true'即可查詢此API服務的統計資訊",
"schema": {
"enum": [
"true"
],
"type": "string",
"default": ""
}
}
],
"responses": {
"200": {
"description": "OK",
"content": {
"text/ndjson": {
"schema": {
"title": "Array",
"type": "array",
"items": {
"$ref": "#/components/schemas/PTXPlus.Service.DTO.Historical.Specification.Traffic.V2.JSON.Section"
},
"xml": {
"name": "List`1"
}
},
"example": "{\"SectionID\":\"string\",\"AuthorityCode\":\"string\",\"SubAuthorityCode\":\"string\",\"SectionName\":\"string\",\"RoadID\":\"string\",\"RoadName\":\"string\",\"RoadClass\":0,\"RoadDirection\":\"string\",\"SrcUpdateTime\":\"0001-01-01T00:00:00+08:06\",\"UpdateTime\":\"0001-01-01T00:00:00+08:06\",\"InfoTime\":\"0001-01-01T00:00:00+08:06\",\"InfoDate\":\"string\"}\n{\"SectionID\":\"string\",\"AuthorityCode\":\"string\",\"SubAuthorityCode\":\"string\",\"SectionName\":\"string\",\"RoadID\":\"string\",\"RoadName\":\"string\",\"RoadClass\":0,\"RoadDirection\":\"string\",\"SrcUpdateTime\":\"0001-01-01T00:00:00+08:06\",\"UpdateTime\":\"0001-01-01T00:00:00+08:06\",\"InfoTime\":\"0001-01-01T00:00:00+08:06\",\"InfoDate\":\"string\"}"
},
"text/csv": {
"schema": {
"title": "Array",
"type": "array",
"items": {
"$ref": "#/components/schemas/PTXPlus.Service.DTO.Historical.Specification.Traffic.V2.CSV.Section"
},
"xml": {
"name": "List`1"
}
},
"example": "SectionID,AuthorityCode,SubAuthorityCode,SectionName,RoadID,RoadName,RoadClass,RoadDirection,RoadSectionStart,RoadSectionEnd,SectionLength,SectionMileStartKM,SectionMileEndKM,SectionStartPositionLat,SectionStartPositionLon,SectionEndPositionLat,SectionEndPositionLon,SpeedLimit,SrcUpdateTime,UpdateTime,InfoTime,InfoDate\n\"string\",\"string\",\"string\",\"string\",\"string\",\"string\",國道,\"string\",\"string\",\"string\",,\"string\",\"string\",,,,,,0001-01-01T00:00:00+08:06,0001-01-01T00:00:00+08:06,0001-01-01T00:00:00+08:06,\"string\"\n\"string\",\"string\",\"string\",\"string\",\"string\",\"string\",國道,\"string\",\"string\",\"string\",,\"string\",\"string\",,,,,,0001-01-01T00:00:00+08:06,0001-01-01T00:00:00+08:06,0001-01-01T00:00:00+08:06,\"string\"\n"
}
}
},
"249": {
"description": "加入參數'?Meta=true'即可查詢此API服務的統計資訊",
"content": {
"text/ndjson": {
"schema": {
"$ref": "#/components/schemas/PTXPlus.Service.DTO.Shared.Specification.Base.MetaFilter.Meta"
}
},
"text/csv": {
"schema": {
"$ref": "#/components/schemas/PTXPlus.Service.DTO.Shared.Specification.Base.MetaFilter.Meta"
}
}
}
}
}
}
},
"/v2/Historical/Road/Traffic/SectionLink/City/{City}": {
"get": {
"tags": [
"Traffic-City"
],
"summary": "取得指定[日期],[縣市]的發布路段之基礎路段組合歷史資料",
"description": "取得指定[日期],[縣市]的發布路段之基礎路段組合歷史資料",
"operationId": "SectionLink_City",
"parameters": [
{
"name": "City",
"in": "path",
"description": "指定城市",
"required": true,
"schema": {
"title": "String",
"enum": [
"Taipei",
"NewTaipei",
"Taoyuan",
"Taichung",
"Tainan",
"Keelung",
"ChanghuaCounty",
"YilanCounty"
],
"type": "string",
"xml": { }
}
},
{
"name": "Dates",
"in": "query",
"description": "本歷史資料提供範圍為2021年7月至昨天(每天早上8點更新),欲查詢之日期 / 區間(日期格式為: 'yyyy-MM-dd',查詢多筆使用逗號','分隔,查詢區間使用波浪號'~'分隔,查詢天數最多7日,例如: '2021-07-01,2021-07-03~2021-07-05')",
"required": true,
"schema": {
"title": "DateList",
"type": "string",
"xml": {
"name": "DateList"
}
}
},
{
"name": "$top",
"in": "query",
"description": "取前幾筆",
"schema": {
"type": "integer",
"default": 30
}
},
{
"name": "$format",
"in": "query",
"description": "指定來源格式",
"required": true,
"schema": {
"enum": [
"JSONL",
"CSV"
],
"type": "string"
}
},
{
"name": "Meta",
"in": "query",
"description": "加入參數'?Meta=true'即可查詢此API服務的統計資訊",
"schema": {
"enum": [
"true"
],
"type": "string",
"default": ""
}
}
],
"responses": {
"200": {
"description": "OK",
"content": {
"text/ndjson": {
"schema": {
"title": "Array",
"type": "array",
"items": {
"$ref": "#/components/schemas/PTXPlus.Service.DTO.Historical.Specification.Traffic.V2.JSON.SectionLink"
},
"xml": {
"name": "List`1"
}
},
"example": "{\"SectionID\":\"string\",\"AuthorityCode\":\"string\",\"SubAuthorityCode\":\"string\",\"StartLinkID\":\"string\",\"EndLinkID\":\"string\",\"SrcUpdateTime\":\"0001-01-01T00:00:00+08:06\",\"UpdateTime\":\"0001-01-01T00:00:00+08:06\",\"InfoTime\":\"0001-01-01T00:00:00+08:06\",\"InfoDate\":\"string\"}\n{\"SectionID\":\"string\",\"AuthorityCode\":\"string\",\"SubAuthorityCode\":\"string\",\"StartLinkID\":\"string\",\"EndLinkID\":\"string\",\"SrcUpdateTime\":\"0001-01-01T00:00:00+08:06\",\"UpdateTime\":\"0001-01-01T00:00:00+08:06\",\"InfoTime\":\"0001-01-01T00:00:00+08:06\",\"InfoDate\":\"string\"}"
},
"text/csv": {
"schema": {
"title": "Array",
"type": "array",
"items": {
"$ref": "#/components/schemas/PTXPlus.Service.DTO.Historical.Specification.Traffic.V2.CSV.SectionLink"
},
"xml": {
"name": "List`1"
}
},
"example": "SectionID,AuthorityCode,SubAuthorityCode,StartLinkID,EndLinkID,LinkIDsLinkIDs,SrcUpdateTime,UpdateTime,InfoTime,InfoDate\n\"string\",\"string\",\"string\",\"string\",\"string\",\"string\",0001-01-01T00:00:00+08:06,0001-01-01T00:00:00+08:06,0001-01-01T00:00:00+08:06,\"string\"\n\"string\",\"string\",\"string\",\"string\",\"string\",\"string\",0001-01-01T00:00:00+08:06,0001-01-01T00:00:00+08:06,0001-01-01T00:00:00+08:06,\"string\"\n"
}
}
},
"249": {
"description": "加入參數'?Meta=true'即可查詢此API服務的統計資訊",
"content": {
"text/ndjson": {
"schema": {
"$ref": "#/components/schemas/PTXPlus.Service.DTO.Shared.Specification.Base.MetaFilter.Meta"
}
},
"text/csv": {
"schema": {
"$ref": "#/components/schemas/PTXPlus.Service.DTO.Shared.Specification.Base.MetaFilter.Meta"
}
}
}
}
}
}
},
"/v2/Historical/Road/Traffic/SectionShape/City/{City}": {
"get": {
"tags": [
"Traffic-City"
],
"summary": "取得指定[日期],[縣市]的發佈路段線型圖資歷史資料",
"description": "取得指定[日期],[縣市]的發佈路段線型圖資歷史資料",
"operationId": "SectionShape_City",
"parameters": [
{
"name": "City",
"in": "path",
"description": "指定城市",
"required": true,
"schema": {
"title": "String",
"enum": [
"Taipei",
"NewTaipei",
"Taoyuan",
"Taichung",
"Tainan",
"Keelung",
"ChanghuaCounty",
"YilanCounty"
],
"type": "string",
"xml": { }
}
},
{
"name": "Dates",
"in": "query",
"description": "本歷史資料提供範圍為2021年7月至昨天(每天早上8點更新),欲查詢之日期 / 區間(日期格式為: 'yyyy-MM-dd',查詢多筆使用逗號','分隔,查詢區間使用波浪號'~'分隔,查詢天數最多7日,例如: '2021-07-01,2021-07-03~2021-07-05')",
"required": true,
"schema": {
"title": "DateList",
"type": "string",
"xml": {
"name": "DateList"
}
}
},
{
"name": "$top",
"in": "query",
"description": "取前幾筆",
"schema": {
"type": "integer",
"default": 30
}
},
{
"name": "$format",
"in": "query",
"description": "指定來源格式",
"required": true,
"schema": {
"enum": [
"JSONL",
"CSV"
],
"type": "string"
}
},
{
"name": "Meta",
"in": "query",
"description": "加入參數'?Meta=true'即可查詢此API服務的統計資訊",
"schema": {
"enum": [
"true"
],
"type": "string",
"default": ""
}
}
],
"responses": {
"200": {
"description": "OK",
"content": {
"text/ndjson": {
"schema": {
"title": "Array",
"type": "array",
"items": {
"$ref": "#/components/schemas/PTXPlus.Service.DTO.Historical.Specification.Traffic.V2.JSON.SectionShape"
},
"xml": {
"name": "List`1"
}
},
"example": "{\"SectionID\":\"string\",\"AuthorityCode\":\"string\",\"SubAuthorityCode\":\"string\",\"Geometry\":\"string\",\"SrcUpdateTime\":\"0001-01-01T00:00:00+08:06\",\"UpdateTime\":\"0001-01-01T00:00:00+08:06\",\"InfoTime\":\"0001-01-01T00:00:00+08:06\",\"InfoDate\":\"string\"}\n{\"SectionID\":\"string\",\"AuthorityCode\":\"string\",\"SubAuthorityCode\":\"string\",\"Geometry\":\"string\",\"SrcUpdateTime\":\"0001-01-01T00:00:00+08:06\",\"UpdateTime\":\"0001-01-01T00:00:00+08:06\",\"InfoTime\":\"0001-01-01T00:00:00+08:06\",\"InfoDate\":\"string\"}"
},
"text/csv": {
"schema": {
"title": "Array",
"type": "array",
"items": {
"$ref": "#/components/schemas/PTXPlus.Service.DTO.Historical.Specification.Traffic.V2.JSON.SectionShape"
},
"xml": {
"name": "List`1"
}
},
"example": "SectionID,AuthorityCode,SubAuthorityCode,Geometry,SrcUpdateTime,UpdateTime,InfoTime,InfoDate\n\"string\",\"string\",\"string\",\"string\",0001-01-01T00:00:00+08:06,0001-01-01T00:00:00+08:06,0001-01-01T00:00:00+08:06,\"string\"\n\"string\",\"string\",\"string\",\"string\",0001-01-01T00:00:00+08:06,0001-01-01T00:00:00+08:06,0001-01-01T00:00:00+08:06,\"string\"\n"
}
}
},
"249": {
"description": "加入參數'?Meta=true'即可查詢此API服務的統計資訊",
"content": {
"text/ndjson": {
"schema": {
"$ref": "#/components/schemas/PTXPlus.Service.DTO.Shared.Specification.Base.MetaFilter.Meta"
}
},
"text/csv": {
"schema": {
"$ref": "#/components/schemas/PTXPlus.Service.DTO.Shared.Specification.Base.MetaFilter.Meta"
}
}
}
}
}
}
},
"/v2/Historical/Road/Traffic/CongestionLevel/City/{City}": {
"get": {
"tags": [
"Traffic-City"
],
"summary": "取得指定[日期],[縣市]的路況壅塞水準歷史資料",
"description": "取得指定[日期],[縣市]的路況壅塞水準歷史資料",
"operationId": "CongestionLevel_City",
"parameters": [
{
"name": "City",
"in": "path",
"description": "指定城市",
"required": true,
"schema": {
"title": "String",
"enum": [
"Taipei",
"NewTaipei",
"Taoyuan",
"Taichung",
"Tainan",
"Kaohsiung",
"Keelung",
"ChanghuaCounty",
"YunlinCounty",
"PingtungCounty",
"YilanCounty"
],
"type": "string",
"xml": { }
}
},
{
"name": "Dates",
"in": "query",
"description": "本歷史資料提供範圍為2021年7月至昨天(每天早上8點更新),欲查詢之日期 / 區間(日期格式為: 'yyyy-MM-dd',查詢多筆使用逗號','分隔,查詢區間使用波浪號'~'分隔,查詢天數最多7日,例如: '2021-07-01,2021-07-03~2021-07-05')",
"required": true,
"schema": {
"title": "DateList",
"type": "string",
"xml": {
"name": "DateList"
}
}
},
{
"name": "$top",
"in": "query",
"description": "取前幾筆",
"schema": {
"type": "integer",
"default": 30
}
},
{
"name": "$format",
"in": "query",
"description": "指定來源格式",
"required": true,
"schema": {
"enum": [
"JSONL",
"CSV"
],
"type": "string"
}
},
{
"name": "Meta",
"in": "query",
"description": "加入參數'?Meta=true'即可查詢此API服務的統計資訊",
"schema": {
"enum": [
"true"
],
"type": "string",
"default": ""
}
}
],
"responses": {
"200": {
"description": "OK",
"content": {
"text/ndjson": {
"schema": {
"title": "Array",
"type": "array",
"items": {
"$ref": "#/components/schemas/PTXPlus.Service.DTO.Historical.Specification.Traffic.V2.JSON.CongestionLevel"
},
"xml": {
"name": "List`1"
}
},
"example": "{\"CongestionLevelID\":\"string\",\"AuthorityCode\":\"string\",\"SubAuthorityCode\":\"string\",\"CongestionLevelName\":\"string\",\"Description\":\"string\",\"MeasureIndex\":\"Speed\",\"SrcUpdateTime\":\"0001-01-01T00:00:00+08:06\",\"UpdateTime\":\"0001-01-01T00:00:00+08:06\",\"InfoTime\":\"0001-01-01T00:00:00+08:06\",\"InfoDate\":\"string\"}\n{\"CongestionLevelID\":\"string\",\"AuthorityCode\":\"string\",\"SubAuthorityCode\":\"string\",\"CongestionLevelName\":\"string\",\"Description\":\"string\",\"MeasureIndex\":\"Speed\",\"SrcUpdateTime\":\"0001-01-01T00:00:00+08:06\",\"UpdateTime\":\"0001-01-01T00:00:00+08:06\",\"InfoTime\":\"0001-01-01T00:00:00+08:06\",\"InfoDate\":\"string\"}"
},
"text/csv": {
"schema": {
"title": "Array",
"type": "array",
"items": {
"$ref": "#/components/schemas/PTXPlus.Service.DTO.Historical.Specification.Traffic.V2.CSV.CongestionLevel"
},
"xml": {
"name": "List`1"
}
},
"example": "CongestionLevelID,AuthorityCode,SubAuthorityCode,CongestionLevelName,Description,MeasureIndex,LevelsLevel,LevelsLevelName,LevelsTopValue,LevelsLowValue,SrcUpdateTime,UpdateTime,InfoTime,InfoDate\n\"string\",\"string\",\"string\",\"string\",\"string\",Speed,UNKNOWN,\"string\",,,0001-01-01T00:00:00+08:06,0001-01-01T00:00:00+08:06,0001-01-01T00:00:00+08:06,\"string\"\n\"string\",\"string\",\"string\",\"string\",\"string\",Speed,UNKNOWN,\"string\",,,0001-01-01T00:00:00+08:06,0001-01-01T00:00:00+08:06,0001-01-01T00:00:00+08:06,\"string\"\n"
}
}
},
"249": {
"description": "加入參數'?Meta=true'即可查詢此API服務的統計資訊",
"content": {
"text/ndjson": {
"schema": {
"$ref": "#/components/schemas/PTXPlus.Service.DTO.Shared.Specification.Base.MetaFilter.Meta"
}
},
"text/csv": {
"schema": {
"$ref": "#/components/schemas/PTXPlus.Service.DTO.Shared.Specification.Base.MetaFilter.Meta"
}
}
}
}
}
}
},
"/v2/Historical/Road/Traffic/Live/City/{City}": {
"get": {
"tags": [
"Traffic-City"
],
"summary": "取得指定[日期],[縣市]的發布路段即時路況歷史資料",
"description": "取得指定[日期],[縣市]的發布路段即時路況歷史資料",
"operationId": "LiveTraffic_City",
"parameters": [
{
"name": "City",
"in": "path",
"description": "指定城市",
"required": true,
"schema": {
"title": "String",
"enum": [
"Taipei",
"NewTaipei",
"Taoyuan",
"Taichung",
"Tainan",
"Keelung",
"ChanghuaCounty",
"YilanCounty"
],
"type": "string",
"xml": { }
}
},
{
"name": "Dates",
"in": "query",
"description": "本歷史資料提供範圍為2021年7月至昨天(每天早上8點更新),欲查詢之日期 / 區間(日期格式為: 'yyyy-MM-dd',查詢多筆使用逗號','分隔,查詢區間使用波浪號'~'分隔,查詢天數最多7日,例如: '2021-07-01,2021-07-03~2021-07-05')",
"required": true,
"schema": {
"title": "DateList",
"type": "string",
"xml": {
"name": "DateList"
}
}
},
{
"name": "$top",
"in": "query",
"description": "取前幾筆",
"schema": {
"type": "integer",
"default": 30
}
},
{
"name": "$format",
"in": "query",
"description": "指定來源格式",
"required": true,
"schema": {
"enum": [
"JSONL",
"CSV"
],
"type": "string"
}
},
{
"name": "Meta",
"in": "query",
"description": "加入參數'?Meta=true'即可查詢此API服務的統計資訊",
"schema": {
"enum": [
"true"
],
"type": "string",
"default": ""
}
}
],
"responses": {
"200": {
"description": "OK",
"content": {
"text/ndjson": {
"schema": {
"title": "Array",
"type": "array",
"items": {
"$ref": "#/components/schemas/PTXPlus.Service.DTO.Historical.Specification.Traffic.V2.JSON.LiveTraffic"
},
"xml": {
"name": "List`1"
}
},
"example": "{\"SectionID\":\"string\",\"AuthorityCode\":\"string\",\"SubAuthorityCode\":\"string\",\"TravelTime\":0,\"TravelSpeed\":0,\"CongestionLevelID\":\"string\",\"CongestionLevel\":\"string\",\"DataCollectTime\":\"0001-01-01T00:00:00+08:06\",\"SrcUpdateTime\":\"0001-01-01T00:00:00+08:06\",\"UpdateTime\":\"0001-01-01T00:00:00+08:06\",\"InfoTime\":\"0001-01-01T00:00:00+08:06\",\"InfoDate\":\"string\"}\n{\"SectionID\":\"string\",\"AuthorityCode\":\"string\",\"SubAuthorityCode\":\"string\",\"TravelTime\":0,\"TravelSpeed\":0,\"CongestionLevelID\":\"string\",\"CongestionLevel\":\"string\",\"DataCollectTime\":\"0001-01-01T00:00:00+08:06\",\"SrcUpdateTime\":\"0001-01-01T00:00:00+08:06\",\"UpdateTime\":\"0001-01-01T00:00:00+08:06\",\"InfoTime\":\"0001-01-01T00:00:00+08:06\",\"InfoDate\":\"string\"}"
},
"text/csv": {
"schema": {
"title": "Array",
"type": "array",
"items": {
"$ref": "#/components/schemas/PTXPlus.Service.DTO.Historical.Specification.Traffic.V2.CSV.LiveTraffic"
},
"xml": {
"name": "List`1"
}
},
"example": "SectionID,AuthorityCode,SubAuthorityCode,LinkIDsLinkIDs,TravelTime,TravelSpeed,CongestionLevelID,CongestionLevel,DataSourcesHasHistorical,DataSourcesHasVD,DataSourcesHasAVI,DataSourcesHasETAG,DataSourcesHasGVP,DataSourcesHasCVP,DataSourcesHasOthers,DataCollectTime,SrcUpdateTime,UpdateTime,InfoTime,InfoDate\n\"string\",\"string\",\"string\",\"string\",0,0,\"string\",\"string\",不包含,不包含,不包含,不包含,不包含,不包含,不包含,0001-01-01T00:00:00+08:06,0001-01-01T00:00:00+08:06,0001-01-01T00:00:00+08:06,0001-01-01T00:00:00+08:06,\"string\"\n\"string\",\"string\",\"string\",\"string\",0,0,\"string\",\"string\",不包含,不包含,不包含,不包含,不包含,不包含,不包含,0001-01-01T00:00:00+08:06,0001-01-01T00:00:00+08:06,0001-01-01T00:00:00+08:06,0001-01-01T00:00:00+08:06,\"string\"\n"
}
}
},
"249": {
"description": "加入參數'?Meta=true'即可查詢此API服務的統計資訊",
"content": {
"text/ndjson": {
"schema": {
"$ref": "#/components/schemas/PTXPlus.Service.DTO.Shared.Specification.Base.MetaFilter.Meta"
}
},
"text/csv": {
"schema": {
"$ref": "#/components/schemas/PTXPlus.Service.DTO.Shared.Specification.Base.MetaFilter.Meta"
}
}
}
}
}
}
},
"/v2/Historical/Road/Traffic/VD/Freeway": {
"get": {
"tags": [
"Traffic-Freeway"
],
"summary": "取得指定[日期]的[高速公路局]車輛偵測器歷史資料",
"description": "取得指定[日期]的[高速公路局]車輛偵測器歷史資料",
"operationId": "VD_Freeway",
"parameters": [
{
"name": "Dates",
"in": "query",
"description": "本歷史資料提供範圍為2021年7月至昨天(每天早上8點更新),欲查詢之日期 / 區間(日期格式為: 'yyyy-MM-dd',查詢多筆使用逗號','分隔,查詢區間使用波浪號'~'分隔,查詢天數最多7日,例如: '2021-07-01,2021-07-03~2021-07-05')",
"required": true,
"schema": {
"title": "DateList",
"type": "string",
"xml": {
"name": "DateList"
}
}
},
{
"name": "$top",
"in": "query",
"description": "取前幾筆",
"schema": {
"type": "integer",
"default": 30
}
},
{
"name": "$format",
"in": "query",
"description": "指定來源格式",
"required": true,
"schema": {
"enum": [
"JSONL",
"CSV"
],
"type": "string"
}
},
{
"name": "Meta",
"in": "query",
"description": "加入參數'?Meta=true'即可查詢此API服務的統計資訊",
"schema": {
"enum": [
"true"
],
"type": "string",
"default": ""
}
}
],
"responses": {
"200": {
"description": "OK",
"content": {
"text/ndjson": {
"schema": {
"title": "Array",
"type": "array",
"items": {
"$ref": "#/components/schemas/PTXPlus.Service.DTO.Historical.Specification.Traffic.V2.JSON.VD"
},
"xml": {
"name": "List`1"
}
},
"example": "{\"VDID\":\"string\",\"AuthorityCode\":\"string\",\"SubAuthorityCode\":\"string\",\"BiDirectional\":0,\"VDType\":0,\"DetectionType\":0,\"PositionLon\":0,\"PositionLat\":0,\"Geohash\":\"string\",\"CountyID\":\"string\",\"CountyName\":\"string\",\"TownID\":\"string\",\"TownName\":\"string\",\"RoadID\":\"string\",\"RoadName\":\"string\",\"LocationMile\":\"string\",\"SrcUpdateTime\":\"0001-01-01T00:00:00+08:06\",\"UpdateTime\":\"0001-01-01T00:00:00+08:06\",\"InfoTime\":\"0001-01-01T00:00:00+08:06\",\"InfoDate\":\"string\"}\n{\"VDID\":\"string\",\"AuthorityCode\":\"string\",\"SubAuthorityCode\":\"string\",\"BiDirectional\":0,\"VDType\":0,\"DetectionType\":0,\"PositionLon\":0,\"PositionLat\":0,\"Geohash\":\"string\",\"CountyID\":\"string\",\"CountyName\":\"string\",\"TownID\":\"string\",\"TownName\":\"string\",\"RoadID\":\"string\",\"RoadName\":\"string\",\"LocationMile\":\"string\",\"SrcUpdateTime\":\"0001-01-01T00:00:00+08:06\",\"UpdateTime\":\"0001-01-01T00:00:00+08:06\",\"InfoTime\":\"0001-01-01T00:00:00+08:06\",\"InfoDate\":\"string\"}"
},
"text/csv": {
"schema": {
"title": "Array",
"type": "array",
"items": {
"$ref": "#/components/schemas/PTXPlus.Service.DTO.Historical.Specification.Traffic.V2.CSV.VD"
},
"xml": {
"name": "List`1"
}
},
"example": "VDID,AuthorityCode,SubAuthorityCode,BiDirectional,DetectionLinksLinkID,DetectionLinksBearing,DetectionLinksRoadDirection,DetectionLinksLaneNum,DetectionLinksActualLaneNum,VDType,LocationType,DetectionType,PositionLon,PositionLat,Geohash,CountyID,CountyName,TownID,TownName,RoadID,RoadName,RoadClass,RoadSectionStart,RoadSectionEnd,LocationMile,SrcUpdateTime,UpdateTime,InfoTime,InfoDate\n\"string\",\"string\",\"string\",偵測單向,\"string\",,\"string\",0,0,0,,0,0,0,\"string\",\"string\",\"string\",\"string\",\"string\",\"string\",\"string\",,\"string\",\"string\",\"string\",0001-01-01T00:00:00+08:06,0001-01-01T00:00:00+08:06,0001-01-01T00:00:00+08:06,\"string\"\n\"string\",\"string\",\"string\",偵測單向,\"string\",,\"string\",0,0,0,,0,0,0,\"string\",\"string\",\"string\",\"string\",\"string\",\"string\",\"string\",,\"string\",\"string\",\"string\",0001-01-01T00:00:00+08:06,0001-01-01T00:00:00+08:06,0001-01-01T00:00:00+08:06,\"string\"\n"
}
}
},
"249": {
"description": "加入參數'?Meta=true'即可查詢此API服務的統計資訊",
"content": {
"text/ndjson": {
"schema": {
"$ref": "#/components/schemas/PTXPlus.Service.DTO.Shared.Specification.Base.MetaFilter.Meta"
}
},
"text/csv": {
"schema": {
"$ref": "#/components/schemas/PTXPlus.Service.DTO.Shared.Specification.Base.MetaFilter.Meta"
}
}
}
}
}
}
},
"/v2/Historical/Road/Traffic/Live/VD/Freeway": {
"get": {
"tags": [
"Traffic-Freeway"
],
"summary": "取得指定[日期]的[高速公路局]車輛偵測器即時路況歷史資料",
"description": "取得指定[日期]的[高速公路局]車輛偵測器即時路況歷史資料",
"operationId": "VDLive_Freeway",
"parameters": [
{
"name": "Dates",
"in": "query",
"description": "本歷史資料提供範圍為2021年7月至昨天(每天早上8點更新),欲查詢之日期 / 區間(日期格式為: 'yyyy-MM-dd',查詢多筆使用逗號','分隔,查詢區間使用波浪號'~'分隔,查詢天數最多7日,例如: '2021-07-01,2021-07-03~2021-07-05')",
"required": true,
"schema": {
"title": "DateList",
"type": "string",
"xml": {
"name": "DateList"
}
}
},
{
"name": "$top",
"in": "query",
"description": "取前幾筆",
"schema": {
"type": "integer",
"default": 30
}
},
{
"name": "$format",
"in": "query",
"description": "指定來源格式",
"required": true,
"schema": {
"enum": [
"JSONL",
"CSV"
],
"type": "string"
}
},
{
"name": "Meta",
"in": "query",
"description": "加入參數'?Meta=true'即可查詢此API服務的統計資訊",
"schema": {
"enum": [
"true"
],
"type": "string",
"default": ""
}
}
],
"responses": {
"200": {
"description": "OK",
"content": {
"text/ndjson": {
"schema": {
"title": "Array",
"type": "array",
"items": {
"$ref": "#/components/schemas/PTXPlus.Service.DTO.Historical.Specification.Traffic.V2.JSON.VDLive"
},
"xml": {
"name": "List`1"
}
},
"example": "{\"VDID\":\"string\",\"HostAuthorityCode\":\"string\",\"AuthorityCode\":\"string\",\"SubAuthorityCode\":\"string\",\"Status\":0,\"DataCollectTime\":\"0001-01-01T00:00:00+08:06\",\"SrcUpdateTime\":\"0001-01-01T00:00:00+08:06\",\"UpdateTime\":\"0001-01-01T00:00:00+08:06\",\"InfoTime\":\"0001-01-01T00:00:00+08:06\",\"InfoDate\":\"string\"}\n{\"VDID\":\"string\",\"HostAuthorityCode\":\"string\",\"AuthorityCode\":\"string\",\"SubAuthorityCode\":\"string\",\"Status\":0,\"DataCollectTime\":\"0001-01-01T00:00:00+08:06\",\"SrcUpdateTime\":\"0001-01-01T00:00:00+08:06\",\"UpdateTime\":\"0001-01-01T00:00:00+08:06\",\"InfoTime\":\"0001-01-01T00:00:00+08:06\",\"InfoDate\":\"string\"}"
},
"text/csv": {
"schema": {
"title": "Array",
"type": "array",
"items": {
"$ref": "#/components/schemas/PTXPlus.Service.DTO.Historical.Specification.Traffic.V2.CSV.VDLive"
},
"xml": {
"name": "List`1"
}
},
"example": "VDID,HostAuthorityCode,AuthorityCode,SubAuthorityCode,LinkFlowsLinkID,LinkFlowsLanesLaneID,LinkFlowsLanesLaneType,LinkFlowsLanesSpeed,LinkFlowsLanesOccupancy,LinkFlowsLanesVehiclesVehicleType,LinkFlowsLanesVehiclesVolume,LinkFlowsLanesVehiclesSpeed,LinkFlowsLanesErrorDiags,LinkFlowsLanesRecurrentTimes,LinkFlowsLanesRecurrentZeroTimes,Status,DataCollectTime,SrcUpdateTime,UpdateTime,InfoTime,InfoDate\n\"string\",\"string\",\"string\",\"string\",\"string\",0,0,0,0,\"string\",0,,\"string\",0,0,正常,0001-01-01T00:00:00+08:06,0001-01-01T00:00:00+08:06,0001-01-01T00:00:00+08:06,0001-01-01T00:00:00+08:06,\"string\"\n\"string\",\"string\",\"string\",\"string\",\"string\",0,0,0,0,\"string\",0,,\"string\",0,0,正常,0001-01-01T00:00:00+08:06,0001-01-01T00:00:00+08:06,0001-01-01T00:00:00+08:06,0001-01-01T00:00:00+08:06,\"string\"\n"
}
}
},
"249": {
"description": "加入參數'?Meta=true'即可查詢此API服務的統計資訊",
"content": {
"text/ndjson": {
"schema": {
"$ref": "#/components/schemas/PTXPlus.Service.DTO.Shared.Specification.Base.MetaFilter.Meta"
}
},
"text/csv": {
"schema": {
"$ref": "#/components/schemas/PTXPlus.Service.DTO.Shared.Specification.Base.MetaFilter.Meta"
}
}
}
}
}
}
},
"/v2/Historical/Road/Traffic/CMS/Freeway": {
"get": {
"tags": [
"Traffic-Freeway"
],
"summary": "取得指定[日期]的[高速公路局]資訊可變標誌歷史資料",
"description": "取得指定[日期]的[高速公路局]資訊可變標誌歷史資料",
"operationId": "CMS_Freeway",
"parameters": [
{
"name": "Dates",
"in": "query",
"description": "本歷史資料提供範圍為2021年7月至昨天(每天早上8點更新),欲查詢之日期 / 區間(日期格式為: 'yyyy-MM-dd',查詢多筆使用逗號','分隔,查詢區間使用波浪號'~'分隔,查詢天數最多7日,例如: '2021-07-01,2021-07-03~2021-07-05')",
"required": true,
"schema": {
"title": "DateList",
"type": "string",
"xml": {
"name": "DateList"
}
}
},
{
"name": "$top",
"in": "query",
"description": "取前幾筆",
"schema": {
"type": "integer",
"default": 30
}
},
{
"name": "$format",
"in": "query",
"description": "指定來源格式",
"required": true,
"schema": {
"enum": [
"JSONL",
"CSV"
],
"type": "string"
}
},
{
"name": "Meta",
"in": "query",
"description": "加入參數'?Meta=true'即可查詢此API服務的統計資訊",
"schema": {
"enum": [
"true"
],
"type": "string",
"default": ""
}
}
],
"responses": {
"200": {
"description": "OK",
"content": {
"text/ndjson": {
"schema": {
"title": "Array",
"type": "array",
"items": {
"$ref": "#/components/schemas/PTXPlus.Service.DTO.Historical.Specification.Traffic.V2.JSON.CMS"
},
"xml": {
"name": "List`1"
}
},
"example": "{\"CMSID\":\"string\",\"AuthorityCode\":\"string\",\"SubAuthorityCode\":\"string\",\"LinkID\":\"string\",\"LocationType\":0,\"PositionLon\":0,\"PositionLat\":0,\"Geohash\":\"string\",\"CountyID\":\"string\",\"CountyName\":\"string\",\"TownID\":\"string\",\"TownName\":\"string\",\"RoadID\":\"string\",\"RoadName\":\"string\",\"RoadDirection\":\"string\",\"LocationMile\":\"string\",\"LayoutMapURL\":\"string\",\"SrcUpdateTime\":\"0001-01-01T00:00:00+08:06\",\"UpdateTime\":\"0001-01-01T00:00:00+08:06\",\"InfoTime\":\"0001-01-01T00:00:00+08:06\",\"InfoDate\":\"string\"}\n{\"CMSID\":\"string\",\"AuthorityCode\":\"string\",\"SubAuthorityCode\":\"string\",\"LinkID\":\"string\",\"LocationType\":0,\"PositionLon\":0,\"PositionLat\":0,\"Geohash\":\"string\",\"CountyID\":\"string\",\"CountyName\":\"string\",\"TownID\":\"string\",\"TownName\":\"string\",\"RoadID\":\"string\",\"RoadName\":\"string\",\"RoadDirection\":\"string\",\"LocationMile\":\"string\",\"LayoutMapURL\":\"string\",\"SrcUpdateTime\":\"0001-01-01T00:00:00+08:06\",\"UpdateTime\":\"0001-01-01T00:00:00+08:06\",\"InfoTime\":\"0001-01-01T00:00:00+08:06\",\"InfoDate\":\"string\"}"
},
"text/csv": {
"schema": {
"title": "Array",
"type": "array",
"items": {
"$ref": "#/components/schemas/PTXPlus.Service.DTO.Historical.Specification.Traffic.V2.CSV.CMS"
},
"xml": {
"name": "List`1"
}
},
"example": "CMSID,AuthorityCode,SubAuthorityCode,LinkID,LocationType,PositionLon,PositionLat,Geohash,CountyID,CountyName,TownID,TownName,RoadID,RoadName,RoadClass,RoadDirection,RoadSectionStart,RoadSectionEnd,LocationMile,LayoutMapURL,SrcUpdateTime,UpdateTime,InfoTime,InfoDate\n\"string\",\"string\",\"string\",\"string\",0,0,0,\"string\",\"string\",\"string\",\"string\",\"string\",\"string\",\"string\",,\"string\",\"string\",\"string\",\"string\",\"string\",0001-01-01T00:00:00+08:06,0001-01-01T00:00:00+08:06,0001-01-01T00:00:00+08:06,\"string\"\n\"string\",\"string\",\"string\",\"string\",0,0,0,\"string\",\"string\",\"string\",\"string\",\"string\",\"string\",\"string\",,\"string\",\"string\",\"string\",\"string\",\"string\",0001-01-01T00:00:00+08:06,0001-01-01T00:00:00+08:06,0001-01-01T00:00:00+08:06,\"string\"\n"
}
}
},
"249": {
"description": "加入參數'?Meta=true'即可查詢此API服務的統計資訊",
"content": {
"text/ndjson": {
"schema": {
"$ref": "#/components/schemas/PTXPlus.Service.DTO.Shared.Specification.Base.MetaFilter.Meta"
}
},
"text/csv": {
"schema": {
"$ref": "#/components/schemas/PTXPlus.Service.DTO.Shared.Specification.Base.MetaFilter.Meta"
}
}
}
}
}
}
},
"/v2/Historical/Road/Traffic/Live/CMS/Freeway": {
"get": {
"tags": [
"Traffic-Freeway"
],
"summary": "取得指定[日期]的[高速公路局]資訊可變標誌即時資訊歷史資料",
"description": "取得指定[日期]的[高速公路局]資訊可變標誌即時資訊歷史資料",
"operationId": "CMSLive_Freeway",
"parameters": [
{
"name": "Dates",
"in": "query",
"description": "本歷史資料提供範圍為2021年7月至昨天(每天早上8點更新),欲查詢之日期 / 區間(日期格式為: 'yyyy-MM-dd',查詢多筆使用逗號','分隔,查詢區間使用波浪號'~'分隔,查詢天數最多7日,例如: '2021-07-01,2021-07-03~2021-07-05')",
"required": true,
"schema": {
"title": "DateList",
"type": "string",
"xml": {
"name": "DateList"
}
}
},
{
"name": "$top",
"in": "query",
"description": "取前幾筆",
"schema": {
"type": "integer",
"default": 30
}
},
{
"name": "$format",
"in": "query",
"description": "指定來源格式",
"required": true,
"schema": {
"enum": [
"JSONL",
"CSV"
],
"type": "string"
}
},
{
"name": "Meta",
"in": "query",
"description": "加入參數'?Meta=true'即可查詢此API服務的統計資訊",
"schema": {
"enum": [
"true"
],
"type": "string",
"default": ""
}
}
],
"responses": {
"200": {
"description": "OK",
"content": {
"text/ndjson": {
"schema": {
"title": "Array",
"type": "array",
"items": {
"$ref": "#/components/schemas/PTXPlus.Service.DTO.Historical.Specification.Traffic.V2.JSON.CMSLive"
},
"xml": {
"name": "List`1"
}
},
"example": "{\"CMSID\":\"string\",\"AuthorityCode\":\"string\",\"SubAuthorityCode\":\"string\",\"MessageStatus\":0,\"Status\":0,\"DataCollectTime\":\"0001-01-01T00:00:00+08:06\",\"SrcUpdateTime\":\"0001-01-01T00:00:00+08:06\",\"UpdateTime\":\"0001-01-01T00:00:00+08:06\",\"InfoTime\":\"0001-01-01T00:00:00+08:06\",\"InfoDate\":\"string\"}\n{\"CMSID\":\"string\",\"AuthorityCode\":\"string\",\"SubAuthorityCode\":\"string\",\"MessageStatus\":0,\"Status\":0,\"DataCollectTime\":\"0001-01-01T00:00:00+08:06\",\"SrcUpdateTime\":\"0001-01-01T00:00:00+08:06\",\"UpdateTime\":\"0001-01-01T00:00:00+08:06\",\"InfoTime\":\"0001-01-01T00:00:00+08:06\",\"InfoDate\":\"string\"}"
},
"text/csv": {
"schema": {
"title": "Array",
"type": "array",
"items": {
"$ref": "#/components/schemas/PTXPlus.Service.DTO.Historical.Specification.Traffic.V2.CSV.CMSLive"
},
"xml": {
"name": "List`1"
}
},
"example": "CMSID,AuthorityCode,SubAuthorityCode,MessageStatus,MessagesText,MessagesImage,MessagesType,MessagesPriority,Status,DataCollectTime,SrcUpdateTime,UpdateTime,InfoTime,InfoDate\n\"string\",\"string\",\"string\",目前無資料顯示,\"string\",\"string\",,,正常,0001-01-01T00:00:00+08:06,0001-01-01T00:00:00+08:06,0001-01-01T00:00:00+08:06,0001-01-01T00:00:00+08:06,\"string\"\n\"string\",\"string\",\"string\",目前無資料顯示,\"string\",\"string\",,,正常,0001-01-01T00:00:00+08:06,0001-01-01T00:00:00+08:06,0001-01-01T00:00:00+08:06,0001-01-01T00:00:00+08:06,\"string\"\n"
}
}
},
"249": {
"description": "加入參數'?Meta=true'即可查詢此API服務的統計資訊",
"content": {
"text/ndjson": {
"schema": {
"$ref": "#/components/schemas/PTXPlus.Service.DTO.Shared.Specification.Base.MetaFilter.Meta"
}
},
"text/csv": {
"schema": {
"$ref": "#/components/schemas/PTXPlus.Service.DTO.Shared.Specification.Base.MetaFilter.Meta"
}
}
}
}
}
}
},
"/v2/Historical/Road/Traffic/CCTV/Freeway": {
"get": {
"tags": [
"Traffic-Freeway"
],
"summary": "取得指定[日期]的[高速公路局]閉路電視攝影機歷史資料",
"description": "取得指定[日期]的[高速公路局]閉路電視攝影機歷史資料",
"operationId": "CCTV_Freeway",
"parameters": [
{
"name": "Dates",
"in": "query",
"description": "本歷史資料提供範圍為2021年7月至昨天(每天早上8點更新),欲查詢之日期 / 區間(日期格式為: 'yyyy-MM-dd',查詢多筆使用逗號','分隔,查詢區間使用波浪號'~'分隔,查詢天數最多7日,例如: '2021-07-01,2021-07-03~2021-07-05')",
"required": true,
"schema": {
"title": "DateList",
"type": "string",
"xml": {
"name": "DateList"
}
}
},
{
"name": "$top",
"in": "query",
"description": "取前幾筆",
"schema": {
"type": "integer",
"default": 30
}
},
{
"name": "$format",
"in": "query",
"description": "指定來源格式",
"required": true,
"schema": {
"enum": [
"JSONL",
"CSV"
],
"type": "string"
}
},
{
"name": "Meta",
"in": "query",
"description": "加入參數'?Meta=true'即可查詢此API服務的統計資訊",
"schema": {
"enum": [
"true"
],
"type": "string",
"default": ""
}
}
],
"responses": {
"200": {
"description": "OK",
"content": {
"text/ndjson": {
"schema": {
"title": "Array",
"type": "array",
"items": {
"$ref": "#/components/schemas/PTXPlus.Service.DTO.Historical.Specification.Traffic.V2.JSON.CCTV"
},
"xml": {
"name": "List`1"
}
},
"example": "{\"CCTVID\":\"string\",\"AuthorityCode\":\"string\",\"SubAuthorityCode\":\"string\",\"LinkID\":\"string\",\"VideoStreamURL\":\"string\",\"LocationType\":0,\"PositionLon\":0,\"PositionLat\":0,\"Geohash\":\"string\",\"CountyID\":\"string\",\"CountyName\":\"string\",\"TownID\":\"string\",\"TownName\":\"string\",\"RoadID\":\"string\",\"RoadName\":\"string\",\"RoadDirection\":\"string\",\"LocationMile\":\"string\",\"LayoutMapURL\":\"string\",\"SrcUpdateTime\":\"0001-01-01T00:00:00+08:06\",\"UpdateTime\":\"0001-01-01T00:00:00+08:06\",\"InfoTime\":\"0001-01-01T00:00:00+08:06\",\"InfoDate\":\"string\"}\n{\"CCTVID\":\"string\",\"AuthorityCode\":\"string\",\"SubAuthorityCode\":\"string\",\"LinkID\":\"string\",\"VideoStreamURL\":\"string\",\"LocationType\":0,\"PositionLon\":0,\"PositionLat\":0,\"Geohash\":\"string\",\"CountyID\":\"string\",\"CountyName\":\"string\",\"TownID\":\"string\",\"TownName\":\"string\",\"RoadID\":\"string\",\"RoadName\":\"string\",\"RoadDirection\":\"string\",\"LocationMile\":\"string\",\"LayoutMapURL\":\"string\",\"SrcUpdateTime\":\"0001-01-01T00:00:00+08:06\",\"UpdateTime\":\"0001-01-01T00:00:00+08:06\",\"InfoTime\":\"0001-01-01T00:00:00+08:06\",\"InfoDate\":\"string\"}"
},
"text/csv": {
"schema": {
"title": "Array",
"type": "array",
"items": {
"$ref": "#/components/schemas/PTXPlus.Service.DTO.Historical.Specification.Traffic.V2.CSV.CCTV"
},
"xml": {
"name": "List`1"
}
},
"example": "CCTVID,AuthorityCode,SubAuthorityCode,LinkID,LookingViewsBearing,LookingViewsImage,VideoStreamURL,LocationType,PositionLon,PositionLat,Geohash,CountyID,CountyName,TownID,TownName,RoadID,RoadName,RoadClass,RoadDirection,RoadSectionStart,RoadSectionEnd,LocationMile,LayoutMapURL,SrcUpdateTime,UpdateTime,InfoTime,InfoDate\n\"string\",\"string\",\"string\",\"string\",,\"string\",\"string\",0,0,0,\"string\",\"string\",\"string\",\"string\",\"string\",\"string\",\"string\",,\"string\",\"string\",\"string\",\"string\",\"string\",0001-01-01T00:00:00+08:06,0001-01-01T00:00:00+08:06,0001-01-01T00:00:00+08:06,\"string\"\n\"string\",\"string\",\"string\",\"string\",,\"string\",\"string\",0,0,0,\"string\",\"string\",\"string\",\"string\",\"string\",\"string\",\"string\",,\"string\",\"string\",\"string\",\"string\",\"string\",0001-01-01T00:00:00+08:06,0001-01-01T00:00:00+08:06,0001-01-01T00:00:00+08:06,\"string\"\n"
}
}
},
"249": {
"description": "加入參數'?Meta=true'即可查詢此API服務的統計資訊",
"content": {
"text/ndjson": {
"schema": {
"$ref": "#/components/schemas/PTXPlus.Service.DTO.Shared.Specification.Base.MetaFilter.Meta"
}
},
"text/csv": {
"schema": {
"$ref": "#/components/schemas/PTXPlus.Service.DTO.Shared.Specification.Base.MetaFilter.Meta"
}
}
}
}
}
}
},
"/v2/Historical/Road/Traffic/ETag/Freeway": {
"get": {
"tags": [
"Traffic-Freeway"
],
"summary": "取得指定[日期]的[高速公路局]電子標籤門架歷史資料",
"description": "取得指定[日期]的[高速公路局]電子標籤門架歷史資料",
"operationId": "ETag_Freeway",
"parameters": [
{
"name": "Dates",
"in": "query",
"description": "本歷史資料提供範圍為2021年7月至昨天(每天早上8點更新),欲查詢之日期 / 區間(日期格式為: 'yyyy-MM-dd',查詢多筆使用逗號','分隔,查詢區間使用波浪號'~'分隔,查詢天數最多7日,例如: '2021-07-01,2021-07-03~2021-07-05')",
"required": true,
"schema": {
"title": "DateList",
"type": "string",
"xml": {
"name": "DateList"
}
}
},
{
"name": "$top",
"in": "query",
"description": "取前幾筆",
"schema": {
"type": "integer",
"default": 30
}
},
{
"name": "$format",
"in": "query",
"description": "指定來源格式",
"required": true,
"schema": {
"enum": [
"JSONL",
"CSV"
],
"type": "string"
}
},
{
"name": "Meta",
"in": "query",
"description": "加入參數'?Meta=true'即可查詢此API服務的統計資訊",
"schema": {
"enum": [
"true"
],
"type": "string",
"default": ""
}
}
],
"responses": {
"200": {
"description": "OK",
"content": {
"text/ndjson": {
"schema": {
"title": "Array",
"type": "array",
"items": {
"$ref": "#/components/schemas/PTXPlus.Service.DTO.Historical.Specification.Traffic.V2.JSON.ETag"
},
"xml": {
"name": "List`1"
}
},
"example": "{\"ETagGantryID\":\"string\",\"AuthorityCode\":\"string\",\"SubAuthorityCode\":\"string\",\"LinkID\":\"string\",\"LocationType\":0,\"PositionLon\":0,\"PositionLat\":0,\"Geohash\":\"string\",\"CountyID\":\"string\",\"CountyName\":\"string\",\"TownID\":\"string\",\"TownName\":\"string\",\"RoadID\":\"string\",\"RoadName\":\"string\",\"RoadDirection\":\"string\",\"LocationMile\":\"string\",\"LayoutMapURL\":\"string\",\"SrcUpdateTime\":\"0001-01-01T00:00:00+08:06\",\"UpdateTime\":\"0001-01-01T00:00:00+08:06\",\"InfoTime\":\"0001-01-01T00:00:00+08:06\",\"InfoDate\":\"string\"}\n{\"ETagGantryID\":\"string\",\"AuthorityCode\":\"string\",\"SubAuthorityCode\":\"string\",\"LinkID\":\"string\",\"LocationType\":0,\"PositionLon\":0,\"PositionLat\":0,\"Geohash\":\"string\",\"CountyID\":\"string\",\"CountyName\":\"string\",\"TownID\":\"string\",\"TownName\":\"string\",\"RoadID\":\"string\",\"RoadName\":\"string\",\"RoadDirection\":\"string\",\"LocationMile\":\"string\",\"LayoutMapURL\":\"string\",\"SrcUpdateTime\":\"0001-01-01T00:00:00+08:06\",\"UpdateTime\":\"0001-01-01T00:00:00+08:06\",\"InfoTime\":\"0001-01-01T00:00:00+08:06\",\"InfoDate\":\"string\"}"
},
"text/csv": {
"schema": {
"title": "Array",
"type": "array",
"items": {
"$ref": "#/components/schemas/PTXPlus.Service.DTO.Historical.Specification.Traffic.V2.CSV.ETag"
},
"xml": {
"name": "List`1"
}
},
"example": "ETagGantryID,AuthorityCode,SubAuthorityCode,LinkID,LocationType,PositionLon,PositionLat,Geohash,CountyID,CountyName,TownID,TownName,RoadID,RoadName,RoadClass,RoadDirection,RoadSectionStart,RoadSectionEnd,LocationMile,LayoutMapURL,SrcUpdateTime,UpdateTime,InfoTime,InfoDate\n\"string\",\"string\",\"string\",\"string\",0,0,0,\"string\",\"string\",\"string\",\"string\",\"string\",\"string\",\"string\",,\"string\",\"string\",\"string\",\"string\",\"string\",0001-01-01T00:00:00+08:06,0001-01-01T00:00:00+08:06,0001-01-01T00:00:00+08:06,\"string\"\n\"string\",\"string\",\"string\",\"string\",0,0,0,\"string\",\"string\",\"string\",\"string\",\"string\",\"string\",\"string\",,\"string\",\"string\",\"string\",\"string\",\"string\",0001-01-01T00:00:00+08:06,0001-01-01T00:00:00+08:06,0001-01-01T00:00:00+08:06,\"string\"\n"
}
}
},
"249": {
"description": "加入參數'?Meta=true'即可查詢此API服務的統計資訊",
"content": {
"text/ndjson": {
"schema": {
"$ref": "#/components/schemas/PTXPlus.Service.DTO.Shared.Specification.Base.MetaFilter.Meta"
}
},
"text/csv": {
"schema": {
"$ref": "#/components/schemas/PTXPlus.Service.DTO.Shared.Specification.Base.MetaFilter.Meta"
}
}
}
}
}
}
},
"/v2/Historical/Road/Traffic/ETagPair/Freeway": {
"get": {
"tags": [
"Traffic-Freeway"
],
"summary": "取得指定[日期]的[高速公路局]電子標籤門架配對路段歷史資料",
"description": "取得指定[日期]的[高速公路局]電子標籤門架配對路段歷史資料",
"operationId": "ETagPair_Freeway",
"parameters": [
{
"name": "Dates",
"in": "query",
"description": "本歷史資料提供範圍為2021年7月至昨天(每天早上8點更新),欲查詢之日期 / 區間(日期格式為: 'yyyy-MM-dd',查詢多筆使用逗號','分隔,查詢區間使用波浪號'~'分隔,查詢天數最多7日,例如: '2021-07-01,2021-07-03~2021-07-05')",
"required": true,
"schema": {
"title": "DateList",
"type": "string",
"xml": {
"name": "DateList"
}
}
},
{
"name": "$top",
"in": "query",
"description": "取前幾筆",
"schema": {
"type": "integer",
"default": 30
}
},
{
"name": "$format",
"in": "query",
"description": "指定來源格式",
"required": true,
"schema": {
"enum": [
"JSONL",
"CSV"
],
"type": "string"
}
},
{
"name": "Meta",
"in": "query",
"description": "加入參數'?Meta=true'即可查詢此API服務的統計資訊",
"schema": {
"enum": [
"true"
],
"type": "string",
"default": ""
}
}
],
"responses": {
"200": {
"description": "OK",
"content": {
"text/ndjson": {
"schema": {
"title": "Array",
"type": "array",
"items": {
"$ref": "#/components/schemas/PTXPlus.Service.DTO.Historical.Specification.Traffic.V2.JSON.ETagPair"
},
"xml": {
"name": "List`1"
}
},
"example": "{\"ETagPairID\":\"string\",\"AuthorityCode\":\"string\",\"SubAuthorityCode\":\"string\",\"StartETagGantryID\":\"string\",\"EndETagGantryID\":\"string\",\"Description\":\"string\",\"Distance\":0,\"StartLinkID\":\"string\",\"EndLinkID\":\"string\",\"SectionID\":\"string\",\"Geometry\":\"string\",\"SrcUpdateTime\":\"0001-01-01T00:00:00+08:06\",\"UpdateTime\":\"0001-01-01T00:00:00+08:06\",\"InfoTime\":\"0001-01-01T00:00:00+08:06\",\"InfoDate\":\"string\"}\n{\"ETagPairID\":\"string\",\"AuthorityCode\":\"string\",\"SubAuthorityCode\":\"string\",\"StartETagGantryID\":\"string\",\"EndETagGantryID\":\"string\",\"Description\":\"string\",\"Distance\":0,\"StartLinkID\":\"string\",\"EndLinkID\":\"string\",\"SectionID\":\"string\",\"Geometry\":\"string\",\"SrcUpdateTime\":\"0001-01-01T00:00:00+08:06\",\"UpdateTime\":\"0001-01-01T00:00:00+08:06\",\"InfoTime\":\"0001-01-01T00:00:00+08:06\",\"InfoDate\":\"string\"}"
},
"text/csv": {
"schema": {
"title": "Array",
"type": "array",
"items": {
"$ref": "#/components/schemas/PTXPlus.Service.DTO.Historical.Specification.Traffic.V2.CSV.ETagPair"
},
"xml": {
"name": "List`1"
}
},
"example": "ETagPairID,AuthorityCode,SubAuthorityCode,StartETagGantryID,EndETagGantryID,Description,Distance,StartLinkID,EndLinkID,LinkIDsLinkIDs,SectionID,Geometry,SrcUpdateTime,UpdateTime,InfoTime,InfoDate\n\"string\",\"string\",\"string\",\"string\",\"string\",\"string\",0,\"string\",\"string\",\"string\",\"string\",\"string\",0001-01-01T00:00:00+08:06,0001-01-01T00:00:00+08:06,0001-01-01T00:00:00+08:06,\"string\"\n\"string\",\"string\",\"string\",\"string\",\"string\",\"string\",0,\"string\",\"string\",\"string\",\"string\",\"string\",0001-01-01T00:00:00+08:06,0001-01-01T00:00:00+08:06,0001-01-01T00:00:00+08:06,\"string\"\n"
}
}
},
"249": {
"description": "加入參數'?Meta=true'即可查詢此API服務的統計資訊",
"content": {
"text/ndjson": {
"schema": {
"$ref": "#/components/schemas/PTXPlus.Service.DTO.Shared.Specification.Base.MetaFilter.Meta"
}
},
"text/csv": {
"schema": {
"$ref": "#/components/schemas/PTXPlus.Service.DTO.Shared.Specification.Base.MetaFilter.Meta"
}
}
}
}
}
}
},
"/v2/Historical/Road/Traffic/Live/ETag/Freeway": {
"get": {
"tags": [
"Traffic-Freeway"
],
"summary": "取得指定[日期]的[高速公路局]電子標籤門架配對路段即時路況歷史資料",
"description": "取得指定[日期]的[高速公路局]電子標籤門架配對路段即時路況歷史資料",
"operationId": "ETagPairLive_Freeway",
"parameters": [
{
"name": "Dates",
"in": "query",
"description": "本歷史資料提供範圍為2021年7月至昨天(每天早上8點更新),欲查詢之日期 / 區間(日期格式為: 'yyyy-MM-dd',查詢多筆使用逗號','分隔,查詢區間使用波浪號'~'分隔,查詢天數最多7日,例如: '2021-07-01,2021-07-03~2021-07-05')",
"required": true,
"schema": {
"title": "DateList",
"type": "string",
"xml": {
"name": "DateList"
}
}
},
{
"name": "$top",
"in": "query",
"description": "取前幾筆",
"schema": {
"type": "integer",
"default": 30
}
},
{
"name": "$format",
"in": "query",
"description": "指定來源格式",
"required": true,
"schema": {
"enum": [
"JSONL",
"CSV"
],
"type": "string"
}
},
{
"name": "Meta",
"in": "query",
"description": "加入參數'?Meta=true'即可查詢此API服務的統計資訊",
"schema": {
"enum": [
"true"
],
"type": "string",
"default": ""
}
}
],
"responses": {
"200": {
"description": "OK",
"content": {
"text/ndjson": {
"schema": {
"title": "Array",
"type": "array",
"items": {
"$ref": "#/components/schemas/PTXPlus.Service.DTO.Historical.Specification.Traffic.V2.JSON.ETagPairLive"
},
"xml": {
"name": "List`1"
}
},
"example": "{\"ETagPairID\":\"string\",\"AuthorityCode\":\"string\",\"SubAuthorityCode\":\"string\",\"StartETagStatus\":0,\"EndETagStatus\":0,\"StartTime\":\"0001-01-01T00:00:00+08:06\",\"EndTime\":\"0001-01-01T00:00:00+08:06\",\"DataCollectTime\":\"0001-01-01T00:00:00+08:06\",\"SrcUpdateTime\":\"0001-01-01T00:00:00+08:06\",\"UpdateTime\":\"0001-01-01T00:00:00+08:06\",\"InfoTime\":\"0001-01-01T00:00:00+08:06\",\"InfoDate\":\"string\"}\n{\"ETagPairID\":\"string\",\"AuthorityCode\":\"string\",\"SubAuthorityCode\":\"string\",\"StartETagStatus\":0,\"EndETagStatus\":0,\"StartTime\":\"0001-01-01T00:00:00+08:06\",\"EndTime\":\"0001-01-01T00:00:00+08:06\",\"DataCollectTime\":\"0001-01-01T00:00:00+08:06\",\"SrcUpdateTime\":\"0001-01-01T00:00:00+08:06\",\"UpdateTime\":\"0001-01-01T00:00:00+08:06\",\"InfoTime\":\"0001-01-01T00:00:00+08:06\",\"InfoDate\":\"string\"}"
},
"text/csv": {
"schema": {
"title": "Array",
"type": "array",
"items": {
"$ref": "#/components/schemas/PTXPlus.Service.DTO.Historical.Specification.Traffic.V2.CSV.ETagPairLive"
},
"xml": {
"name": "List`1"
}
},
"example": "ETagPairID,AuthorityCode,SubAuthorityCode,StartETagStatus,EndETagStatus,FlowsVehicleType,FlowsTravelTime,FlowsStandardDeviation,FlowsSpaceMeanSpeed,FlowsVehicleCount,StartTime,EndTime,DataCollectTime,SrcUpdateTime,UpdateTime,InfoTime,InfoDate\n\"string\",\"string\",\"string\",正常,正常,0,0,0,0,0,0001-01-01T00:00:00+08:06,0001-01-01T00:00:00+08:06,0001-01-01T00:00:00+08:06,0001-01-01T00:00:00+08:06,0001-01-01T00:00:00+08:06,0001-01-01T00:00:00+08:06,\"string\"\n\"string\",\"string\",\"string\",正常,正常,0,0,0,0,0,0001-01-01T00:00:00+08:06,0001-01-01T00:00:00+08:06,0001-01-01T00:00:00+08:06,0001-01-01T00:00:00+08:06,0001-01-01T00:00:00+08:06,0001-01-01T00:00:00+08:06,\"string\"\n"
}
}
},
"249": {
"description": "加入參數'?Meta=true'即可查詢此API服務的統計資訊",
"content": {
"text/ndjson": {
"schema": {
"$ref": "#/components/schemas/PTXPlus.Service.DTO.Shared.Specification.Base.MetaFilter.Meta"
}
},
"text/csv": {
"schema": {
"$ref": "#/components/schemas/PTXPlus.Service.DTO.Shared.Specification.Base.MetaFilter.Meta"
}
}
}
}
}
}
},
"/v2/Historical/Road/Traffic/Section/Freeway": {
"get": {
"tags": [
"Traffic-Freeway"
],
"summary": "取得指定[日期]的[高速公路局]發佈路段歷史資料",
"description": "取得指定[日期]的[高速公路局]發佈路段歷史資料",
"operationId": "Section_Freeway",
"parameters": [
{
"name": "Dates",
"in": "query",
"description": "本歷史資料提供範圍為2021年7月至昨天(每天早上8點更新),欲查詢之日期 / 區間(日期格式為: 'yyyy-MM-dd',查詢多筆使用逗號','分隔,查詢區間使用波浪號'~'分隔,查詢天數最多7日,例如: '2021-07-01,2021-07-03~2021-07-05')",
"required": true,
"schema": {
"title": "DateList",
"type": "string",
"xml": {
"name": "DateList"
}
}
},
{
"name": "$top",
"in": "query",
"description": "取前幾筆",
"schema": {
"type": "integer",
"default": 30
}
},
{
"name": "$format",
"in": "query",
"description": "指定來源格式",
"required": true,
"schema": {
"enum": [
"JSONL",
"CSV"
],
"type": "string"
}
},
{
"name": "Meta",
"in": "query",
"description": "加入參數'?Meta=true'即可查詢此API服務的統計資訊",
"schema": {
"enum": [
"true"
],
"type": "string",
"default": ""
}
}
],
"responses": {
"200": {
"description": "OK",
"content": {
"text/ndjson": {
"schema": {
"title": "Array",
"type": "array",
"items": {
"$ref": "#/components/schemas/PTXPlus.Service.DTO.Historical.Specification.Traffic.V2.JSON.Section"
},
"xml": {
"name": "List`1"
}
},
"example": "{\"SectionID\":\"string\",\"AuthorityCode\":\"string\",\"SubAuthorityCode\":\"string\",\"SectionName\":\"string\",\"RoadID\":\"string\",\"RoadName\":\"string\",\"RoadClass\":0,\"RoadDirection\":\"string\",\"SrcUpdateTime\":\"0001-01-01T00:00:00+08:06\",\"UpdateTime\":\"0001-01-01T00:00:00+08:06\",\"InfoTime\":\"0001-01-01T00:00:00+08:06\",\"InfoDate\":\"string\"}\n{\"SectionID\":\"string\",\"AuthorityCode\":\"string\",\"SubAuthorityCode\":\"string\",\"SectionName\":\"string\",\"RoadID\":\"string\",\"RoadName\":\"string\",\"RoadClass\":0,\"RoadDirection\":\"string\",\"SrcUpdateTime\":\"0001-01-01T00:00:00+08:06\",\"UpdateTime\":\"0001-01-01T00:00:00+08:06\",\"InfoTime\":\"0001-01-01T00:00:00+08:06\",\"InfoDate\":\"string\"}"
},
"text/csv": {
"schema": {
"title": "Array",
"type": "array",
"items": {
"$ref": "#/components/schemas/PTXPlus.Service.DTO.Historical.Specification.Traffic.V2.CSV.Section"
},
"xml": {
"name": "List`1"
}
},
"example": "SectionID,AuthorityCode,SubAuthorityCode,SectionName,RoadID,RoadName,RoadClass,RoadDirection,RoadSectionStart,RoadSectionEnd,SectionLength,SectionMileStartKM,SectionMileEndKM,SectionStartPositionLat,SectionStartPositionLon,SectionEndPositionLat,SectionEndPositionLon,SpeedLimit,SrcUpdateTime,UpdateTime,InfoTime,InfoDate\n\"string\",\"string\",\"string\",\"string\",\"string\",\"string\",國道,\"string\",\"string\",\"string\",,\"string\",\"string\",,,,,,0001-01-01T00:00:00+08:06,0001-01-01T00:00:00+08:06,0001-01-01T00:00:00+08:06,\"string\"\n\"string\",\"string\",\"string\",\"string\",\"string\",\"string\",國道,\"string\",\"string\",\"string\",,\"string\",\"string\",,,,,,0001-01-01T00:00:00+08:06,0001-01-01T00:00:00+08:06,0001-01-01T00:00:00+08:06,\"string\"\n"
}
}
},
"249": {
"description": "加入參數'?Meta=true'即可查詢此API服務的統計資訊",
"content": {
"text/ndjson": {
"schema": {
"$ref": "#/components/schemas/PTXPlus.Service.DTO.Shared.Specification.Base.MetaFilter.Meta"
}
},
"text/csv": {
"schema": {
"$ref": "#/components/schemas/PTXPlus.Service.DTO.Shared.Specification.Base.MetaFilter.Meta"
}
}
}
}
}
}
},
"/v2/Historical/Road/Traffic/SectionLink/Freeway": {
"get": {
"tags": [
"Traffic-Freeway"
],
"summary": "取得指定[日期]的[高速公路局]發布路段之基礎路段組合歷史資料",
"description": "取得指定[日期]的[高速公路局]發布路段之基礎路段組合歷史資料",
"operationId": "SectionLink_Freeway",
"parameters": [
{
"name": "Dates",
"in": "query",
"description": "本歷史資料提供範圍為2021年7月至昨天(每天早上8點更新),欲查詢之日期 / 區間(日期格式為: 'yyyy-MM-dd',查詢多筆使用逗號','分隔,查詢區間使用波浪號'~'分隔,查詢天數最多7日,例如: '2021-07-01,2021-07-03~2021-07-05')",
"required": true,
"schema": {
"title": "DateList",
"type": "string",
"xml": {
"name": "DateList"
}
}
},
{
"name": "$top",
"in": "query",
"description": "取前幾筆",
"schema": {
"type": "integer",
"default": 30
}
},
{
"name": "$format",
"in": "query",
"description": "指定來源格式",
"required": true,
"schema": {
"enum": [
"JSONL",
"CSV"
],
"type": "string"
}
},
{
"name": "Meta",
"in": "query",
"description": "加入參數'?Meta=true'即可查詢此API服務的統計資訊",
"schema": {
"enum": [
"true"
],
"type": "string",
"default": ""
}
}
],
"responses": {
"200": {
"description": "OK",
"content": {
"text/ndjson": {
"schema": {
"title": "Array",
"type": "array",
"items": {
"$ref": "#/components/schemas/PTXPlus.Service.DTO.Historical.Specification.Traffic.V2.JSON.SectionLink"
},
"xml": {
"name": "List`1"
}
},
"example": "{\"SectionID\":\"string\",\"AuthorityCode\":\"string\",\"SubAuthorityCode\":\"string\",\"StartLinkID\":\"string\",\"EndLinkID\":\"string\",\"SrcUpdateTime\":\"0001-01-01T00:00:00+08:06\",\"UpdateTime\":\"0001-01-01T00:00:00+08:06\",\"InfoTime\":\"0001-01-01T00:00:00+08:06\",\"InfoDate\":\"string\"}\n{\"SectionID\":\"string\",\"AuthorityCode\":\"string\",\"SubAuthorityCode\":\"string\",\"StartLinkID\":\"string\",\"EndLinkID\":\"string\",\"SrcUpdateTime\":\"0001-01-01T00:00:00+08:06\",\"UpdateTime\":\"0001-01-01T00:00:00+08:06\",\"InfoTime\":\"0001-01-01T00:00:00+08:06\",\"InfoDate\":\"string\"}"
},
"text/csv": {
"schema": {
"title": "Array",
"type": "array",
"items": {
"$ref": "#/components/schemas/PTXPlus.Service.DTO.Historical.Specification.Traffic.V2.CSV.SectionLink"
},
"xml": {
"name": "List`1"
}
},
"example": "SectionID,AuthorityCode,SubAuthorityCode,StartLinkID,EndLinkID,LinkIDsLinkIDs,SrcUpdateTime,UpdateTime,InfoTime,InfoDate\n\"string\",\"string\",\"string\",\"string\",\"string\",\"string\",0001-01-01T00:00:00+08:06,0001-01-01T00:00:00+08:06,0001-01-01T00:00:00+08:06,\"string\"\n\"string\",\"string\",\"string\",\"string\",\"string\",\"string\",0001-01-01T00:00:00+08:06,0001-01-01T00:00:00+08:06,0001-01-01T00:00:00+08:06,\"string\"\n"
}
}
},
"249": {
"description": "加入參數'?Meta=true'即可查詢此API服務的統計資訊",
"content": {
"text/ndjson": {
"schema": {
"$ref": "#/components/schemas/PTXPlus.Service.DTO.Shared.Specification.Base.MetaFilter.Meta"
}
},
"text/csv": {
"schema": {
"$ref": "#/components/schemas/PTXPlus.Service.DTO.Shared.Specification.Base.MetaFilter.Meta"
}
}
}
}
}
}
},
"/v2/Historical/Road/Traffic/SectionShape/Freeway": {
"get": {
"tags": [
"Traffic-Freeway"
],
"summary": "取得指定[日期]的[高速公路局]發佈路段線型圖資歷史資料",
"description": "取得指定[日期]的[高速公路局]發佈路段線型圖資歷史資料",
"operationId": "SectionShape_Freeway",
"parameters": [
{
"name": "Dates",
"in": "query",
"description": "本歷史資料提供範圍為2021年7月至昨天(每天早上8點更新),欲查詢之日期 / 區間(日期格式為: 'yyyy-MM-dd',查詢多筆使用逗號','分隔,查詢區間使用波浪號'~'分隔,查詢天數最多7日,例如: '2021-07-01,2021-07-03~2021-07-05')",
"required": true,
"schema": {
"title": "DateList",
"type": "string",
"xml": {
"name": "DateList"
}
}
},
{
"name": "$top",
"in": "query",
"description": "取前幾筆",
"schema": {
"type": "integer",
"default": 30
}
},
{
"name": "$format",
"in": "query",
"description": "指定來源格式",
"required": true,
"schema": {
"enum": [
"JSONL",
"CSV"
],
"type": "string"
}
},
{
"name": "Meta",
"in": "query",
"description": "加入參數'?Meta=true'即可查詢此API服務的統計資訊",
"schema": {
"enum": [
"true"
],
"type": "string",
"default": ""
}
}
],
"responses": {
"200": {
"description": "OK",
"content": {
"text/ndjson": {
"schema": {
"title": "Array",
"type": "array",
"items": {
"$ref": "#/components/schemas/PTXPlus.Service.DTO.Historical.Specification.Traffic.V2.JSON.SectionShape"
},
"xml": {
"name": "List`1"
}
},
"example": "{\"SectionID\":\"string\",\"AuthorityCode\":\"string\",\"SubAuthorityCode\":\"string\",\"Geometry\":\"string\",\"SrcUpdateTime\":\"0001-01-01T00:00:00+08:06\",\"UpdateTime\":\"0001-01-01T00:00:00+08:06\",\"InfoTime\":\"0001-01-01T00:00:00+08:06\",\"InfoDate\":\"string\"}\n{\"SectionID\":\"string\",\"AuthorityCode\":\"string\",\"SubAuthorityCode\":\"string\",\"Geometry\":\"string\",\"SrcUpdateTime\":\"0001-01-01T00:00:00+08:06\",\"UpdateTime\":\"0001-01-01T00:00:00+08:06\",\"InfoTime\":\"0001-01-01T00:00:00+08:06\",\"InfoDate\":\"string\"}"
},
"text/csv": {
"schema": {
"title": "Array",
"type": "array",
"items": {
"$ref": "#/components/schemas/PTXPlus.Service.DTO.Historical.Specification.Traffic.V2.JSON.SectionShape"
},
"xml": {
"name": "List`1"
}
},
"example": "SectionID,AuthorityCode,SubAuthorityCode,Geometry,SrcUpdateTime,UpdateTime,InfoTime,InfoDate\n\"string\",\"string\",\"string\",\"string\",0001-01-01T00:00:00+08:06,0001-01-01T00:00:00+08:06,0001-01-01T00:00:00+08:06,\"string\"\n\"string\",\"string\",\"string\",\"string\",0001-01-01T00:00:00+08:06,0001-01-01T00:00:00+08:06,0001-01-01T00:00:00+08:06,\"string\"\n"
}
}
},
"249": {
"description": "加入參數'?Meta=true'即可查詢此API服務的統計資訊",
"content": {
"text/ndjson": {
"schema": {
"$ref": "#/components/schemas/PTXPlus.Service.DTO.Shared.Specification.Base.MetaFilter.Meta"
}
},
"text/csv": {
"schema": {
"$ref": "#/components/schemas/PTXPlus.Service.DTO.Shared.Specification.Base.MetaFilter.Meta"
}
}
}
}
}
}
},
"/v2/Historical/Road/Traffic/CongestionLevel/Freeway": {
"get": {
"tags": [
"Traffic-Freeway"
],
"summary": "取得指定[日期]的[高速公路局]路況壅塞水準歷史資料",
"description": "取得指定[日期]的[高速公路局]路況壅塞水準歷史資料",
"operationId": "CongestionLevel_Freeway",
"parameters": [
{
"name": "Dates",
"in": "query",
"description": "本歷史資料提供範圍為2021年7月至昨天(每天早上8點更新),欲查詢之日期 / 區間(日期格式為: 'yyyy-MM-dd',查詢多筆使用逗號','分隔,查詢區間使用波浪號'~'分隔,查詢天數最多7日,例如: '2021-07-01,2021-07-03~2021-07-05')",
"required": true,
"schema": {
"title": "DateList",
"type": "string",
"xml": {
"name": "DateList"
}
}
},
{
"name": "$top",
"in": "query",
"description": "取前幾筆",
"schema": {
"type": "integer",
"default": 30
}
},
{
"name": "$format",
"in": "query",
"description": "指定來源格式",
"required": true,
"schema": {
"enum": [
"JSONL",
"CSV"
],
"type": "string"
}
},
{
"name": "Meta",
"in": "query",
"description": "加入參數'?Meta=true'即可查詢此API服務的統計資訊",
"schema": {
"enum": [
"true"
],
"type": "string",
"default": ""
}
}
],
"responses": {
"200": {
"description": "OK",
"content": {
"text/ndjson": {
"schema": {
"title": "Array",
"type": "array",
"items": {
"$ref": "#/components/schemas/PTXPlus.Service.DTO.Historical.Specification.Traffic.V2.JSON.CongestionLevel"
},
"xml": {
"name": "List`1"
}
},
"example": "{\"CongestionLevelID\":\"string\",\"AuthorityCode\":\"string\",\"SubAuthorityCode\":\"string\",\"CongestionLevelName\":\"string\",\"Description\":\"string\",\"MeasureIndex\":\"Speed\",\"SrcUpdateTime\":\"0001-01-01T00:00:00+08:06\",\"UpdateTime\":\"0001-01-01T00:00:00+08:06\",\"InfoTime\":\"0001-01-01T00:00:00+08:06\",\"InfoDate\":\"string\"}\n{\"CongestionLevelID\":\"string\",\"AuthorityCode\":\"string\",\"SubAuthorityCode\":\"string\",\"CongestionLevelName\":\"string\",\"Description\":\"string\",\"MeasureIndex\":\"Speed\",\"SrcUpdateTime\":\"0001-01-01T00:00:00+08:06\",\"UpdateTime\":\"0001-01-01T00:00:00+08:06\",\"InfoTime\":\"0001-01-01T00:00:00+08:06\",\"InfoDate\":\"string\"}"
},
"text/csv": {
"schema": {
"title": "Array",
"type": "array",
"items": {
"$ref": "#/components/schemas/PTXPlus.Service.DTO.Historical.Specification.Traffic.V2.CSV.CongestionLevel"
},
"xml": {
"name": "List`1"
}
},
"example": "CongestionLevelID,AuthorityCode,SubAuthorityCode,CongestionLevelName,Description,MeasureIndex,LevelsLevel,LevelsLevelName,LevelsTopValue,LevelsLowValue,SrcUpdateTime,UpdateTime,InfoTime,InfoDate\n\"string\",\"string\",\"string\",\"string\",\"string\",Speed,UNKNOWN,\"string\",,,0001-01-01T00:00:00+08:06,0001-01-01T00:00:00+08:06,0001-01-01T00:00:00+08:06,\"string\"\n\"string\",\"string\",\"string\",\"string\",\"string\",Speed,UNKNOWN,\"string\",,,0001-01-01T00:00:00+08:06,0001-01-01T00:00:00+08:06,0001-01-01T00:00:00+08:06,\"string\"\n"
}
}
},
"249": {
"description": "加入參數'?Meta=true'即可查詢此API服務的統計資訊",
"content": {
"text/ndjson": {
"schema": {
"$ref": "#/components/schemas/PTXPlus.Service.DTO.Shared.Specification.Base.MetaFilter.Meta"
}
},
"text/csv": {
"schema": {
"$ref": "#/components/schemas/PTXPlus.Service.DTO.Shared.Specification.Base.MetaFilter.Meta"
}
}
}
}
}
}
},
"/v2/Historical/Road/Traffic/Live/Freeway": {
"get": {
"tags": [
"Traffic-Freeway"
],
"summary": "取得指定[日期]的[高速公路局]發布路段即時路況歷史資料",
"description": "取得指定[日期]的[高速公路局]發布路段即時路況歷史資料",
"operationId": "LiveTraffic_Freeway",
"parameters": [
{
"name": "Dates",
"in": "query",
"description": "本歷史資料提供範圍為2021年7月至昨天(每天早上8點更新),欲查詢之日期 / 區間(日期格式為: 'yyyy-MM-dd',查詢多筆使用逗號','分隔,查詢區間使用波浪號'~'分隔,查詢天數最多7日,例如: '2021-07-01,2021-07-03~2021-07-05')",
"required": true,
"schema": {
"title": "DateList",
"type": "string",
"xml": {
"name": "DateList"
}
}
},
{
"name": "$top",
"in": "query",
"description": "取前幾筆",
"schema": {
"type": "integer",
"default": 30
}
},
{
"name": "$format",
"in": "query",
"description": "指定來源格式",
"required": true,
"schema": {
"enum": [
"JSONL",
"CSV"
],
"type": "string"
}
},
{
"name": "Meta",
"in": "query",
"description": "加入參數'?Meta=true'即可查詢此API服務的統計資訊",
"schema": {
"enum": [
"true"
],
"type": "string",
"default": ""
}
}
],
"responses": {
"200": {
"description": "OK",
"content": {
"text/ndjson": {
"schema": {
"title": "Array",
"type": "array",
"items": {
"$ref": "#/components/schemas/PTXPlus.Service.DTO.Historical.Specification.Traffic.V2.JSON.LiveTraffic"
},
"xml": {
"name": "List`1"
}
},
"example": "{\"SectionID\":\"string\",\"AuthorityCode\":\"string\",\"SubAuthorityCode\":\"string\",\"TravelTime\":0,\"TravelSpeed\":0,\"CongestionLevelID\":\"string\",\"CongestionLevel\":\"string\",\"DataCollectTime\":\"0001-01-01T00:00:00+08:06\",\"SrcUpdateTime\":\"0001-01-01T00:00:00+08:06\",\"UpdateTime\":\"0001-01-01T00:00:00+08:06\",\"InfoTime\":\"0001-01-01T00:00:00+08:06\",\"InfoDate\":\"string\"}\n{\"SectionID\":\"string\",\"AuthorityCode\":\"string\",\"SubAuthorityCode\":\"string\",\"TravelTime\":0,\"TravelSpeed\":0,\"CongestionLevelID\":\"string\",\"CongestionLevel\":\"string\",\"DataCollectTime\":\"0001-01-01T00:00:00+08:06\",\"SrcUpdateTime\":\"0001-01-01T00:00:00+08:06\",\"UpdateTime\":\"0001-01-01T00:00:00+08:06\",\"InfoTime\":\"0001-01-01T00:00:00+08:06\",\"InfoDate\":\"string\"}"
},
"text/csv": {
"schema": {
"title": "Array",
"type": "array",
"items": {
"$ref": "#/components/schemas/PTXPlus.Service.DTO.Historical.Specification.Traffic.V2.CSV.LiveTraffic"
},
"xml": {
"name": "List`1"
}
},
"example": "SectionID,AuthorityCode,SubAuthorityCode,LinkIDsLinkIDs,TravelTime,TravelSpeed,CongestionLevelID,CongestionLevel,DataSourcesHasHistorical,DataSourcesHasVD,DataSourcesHasAVI,DataSourcesHasETAG,DataSourcesHasGVP,DataSourcesHasCVP,DataSourcesHasOthers,DataCollectTime,SrcUpdateTime,UpdateTime,InfoTime,InfoDate\n\"string\",\"string\",\"string\",\"string\",0,0,\"string\",\"string\",不包含,不包含,不包含,不包含,不包含,不包含,不包含,0001-01-01T00:00:00+08:06,0001-01-01T00:00:00+08:06,0001-01-01T00:00:00+08:06,0001-01-01T00:00:00+08:06,\"string\"\n\"string\",\"string\",\"string\",\"string\",0,0,\"string\",\"string\",不包含,不包含,不包含,不包含,不包含,不包含,不包含,0001-01-01T00:00:00+08:06,0001-01-01T00:00:00+08:06,0001-01-01T00:00:00+08:06,0001-01-01T00:00:00+08:06,\"string\"\n"
}
}
},
"249": {
"description": "加入參數'?Meta=true'即可查詢此API服務的統計資訊",
"content": {
"text/ndjson": {
"schema": {
"$ref": "#/components/schemas/PTXPlus.Service.DTO.Shared.Specification.Base.MetaFilter.Meta"
}
},
"text/csv": {
"schema": {
"$ref": "#/components/schemas/PTXPlus.Service.DTO.Shared.Specification.Base.MetaFilter.Meta"
}
}
}
}
}
}
},
"/v2/Historical/Road/Traffic/VD/Highway": {
"get": {
"tags": [
"Traffic-Highway"
],
"summary": "取得指定[日期]的[公路局]車輛偵測器歷史資料",
"description": "取得指定[日期]的[公路局]車輛偵測器歷史資料",
"operationId": "VD_Highway",
"parameters": [
{
"name": "Dates",
"in": "query",
"description": "本歷史資料提供範圍為2021年7月至昨天(每天早上8點更新),欲查詢之日期 / 區間(日期格式為: 'yyyy-MM-dd',查詢多筆使用逗號','分隔,查詢區間使用波浪號'~'分隔,查詢天數最多7日,例如: '2021-07-01,2021-07-03~2021-07-05')",
"required": true,
"schema": {
"title": "DateList",
"type": "string",
"xml": {
"name": "DateList"
}
}
},
{
"name": "$top",
"in": "query",
"description": "取前幾筆",
"schema": {
"type": "integer",
"default": 30
}
},
{
"name": "$format",
"in": "query",
"description": "指定來源格式",
"required": true,
"schema": {
"enum": [
"JSONL",
"CSV"
],
"type": "string"
}
},
{
"name": "Meta",
"in": "query",
"description": "加入參數'?Meta=true'即可查詢此API服務的統計資訊",
"schema": {
"enum": [
"true"
],
"type": "string",
"default": ""
}
}
],
"responses": {
"200": {
"description": "OK",
"content": {
"text/ndjson": {
"schema": {
"title": "Array",
"type": "array",
"items": {
"$ref": "#/components/schemas/PTXPlus.Service.DTO.Historical.Specification.Traffic.V2.JSON.VD"
},
"xml": {
"name": "List`1"
}
},
"example": "{\"VDID\":\"string\",\"AuthorityCode\":\"string\",\"SubAuthorityCode\":\"string\",\"BiDirectional\":0,\"VDType\":0,\"DetectionType\":0,\"PositionLon\":0,\"PositionLat\":0,\"Geohash\":\"string\",\"CountyID\":\"string\",\"CountyName\":\"string\",\"TownID\":\"string\",\"TownName\":\"string\",\"RoadID\":\"string\",\"RoadName\":\"string\",\"LocationMile\":\"string\",\"SrcUpdateTime\":\"0001-01-01T00:00:00+08:06\",\"UpdateTime\":\"0001-01-01T00:00:00+08:06\",\"InfoTime\":\"0001-01-01T00:00:00+08:06\",\"InfoDate\":\"string\"}\n{\"VDID\":\"string\",\"AuthorityCode\":\"string\",\"SubAuthorityCode\":\"string\",\"BiDirectional\":0,\"VDType\":0,\"DetectionType\":0,\"PositionLon\":0,\"PositionLat\":0,\"Geohash\":\"string\",\"CountyID\":\"string\",\"CountyName\":\"string\",\"TownID\":\"string\",\"TownName\":\"string\",\"RoadID\":\"string\",\"RoadName\":\"string\",\"LocationMile\":\"string\",\"SrcUpdateTime\":\"0001-01-01T00:00:00+08:06\",\"UpdateTime\":\"0001-01-01T00:00:00+08:06\",\"InfoTime\":\"0001-01-01T00:00:00+08:06\",\"InfoDate\":\"string\"}"
},
"text/csv": {
"schema": {
"title": "Array",
"type": "array",
"items": {
"$ref": "#/components/schemas/PTXPlus.Service.DTO.Historical.Specification.Traffic.V2.CSV.VD"
},
"xml": {
"name": "List`1"
}
},
"example": "VDID,AuthorityCode,SubAuthorityCode,BiDirectional,DetectionLinksLinkID,DetectionLinksBearing,DetectionLinksRoadDirection,DetectionLinksLaneNum,DetectionLinksActualLaneNum,VDType,LocationType,DetectionType,PositionLon,PositionLat,Geohash,CountyID,CountyName,TownID,TownName,RoadID,RoadName,RoadClass,RoadSectionStart,RoadSectionEnd,LocationMile,SrcUpdateTime,UpdateTime,InfoTime,InfoDate\n\"string\",\"string\",\"string\",偵測單向,\"string\",,\"string\",0,0,0,,0,0,0,\"string\",\"string\",\"string\",\"string\",\"string\",\"string\",\"string\",,\"string\",\"string\",\"string\",0001-01-01T00:00:00+08:06,0001-01-01T00:00:00+08:06,0001-01-01T00:00:00+08:06,\"string\"\n\"string\",\"string\",\"string\",偵測單向,\"string\",,\"string\",0,0,0,,0,0,0,\"string\",\"string\",\"string\",\"string\",\"string\",\"string\",\"string\",,\"string\",\"string\",\"string\",0001-01-01T00:00:00+08:06,0001-01-01T00:00:00+08:06,0001-01-01T00:00:00+08:06,\"string\"\n"
}
}
},
"249": {
"description": "加入參數'?Meta=true'即可查詢此API服務的統計資訊",
"content": {
"text/ndjson": {
"schema": {
"$ref": "#/components/schemas/PTXPlus.Service.DTO.Shared.Specification.Base.MetaFilter.Meta"
}
},
"text/csv": {
"schema": {
"$ref": "#/components/schemas/PTXPlus.Service.DTO.Shared.Specification.Base.MetaFilter.Meta"
}
}
}
}
}
}
},
"/v2/Historical/Road/Traffic/Live/VD/Highway": {
"get": {
"tags": [
"Traffic-Highway"
],
"summary": "取得指定[日期]的[公路局]車輛偵測器即時路況歷史資料",
"description": "取得指定[日期]的[公路局]車輛偵測器即時路況歷史資料",
"operationId": "VDLive_Highway",
"parameters": [
{
"name": "Dates",
"in": "query",
"description": "本歷史資料提供範圍為2021年7月至昨天(每天早上8點更新),欲查詢之日期 / 區間(日期格式為: 'yyyy-MM-dd',查詢多筆使用逗號','分隔,查詢區間使用波浪號'~'分隔,查詢天數最多7日,例如: '2021-07-01,2021-07-03~2021-07-05')",
"required": true,
"schema": {
"title": "DateList",
"type": "string",
"xml": {
"name": "DateList"
}
}
},
{
"name": "$top",
"in": "query",
"description": "取前幾筆",
"schema": {
"type": "integer",
"default": 30
}
},
{
"name": "$format",
"in": "query",
"description": "指定來源格式",
"required": true,
"schema": {
"enum": [
"JSONL",
"CSV"
],
"type": "string"
}
},
{
"name": "Meta",
"in": "query",
"description": "加入參數'?Meta=true'即可查詢此API服務的統計資訊",
"schema": {
"enum": [
"true"
],
"type": "string",
"default": ""
}
}
],
"responses": {
"200": {
"description": "OK",
"content": {
"text/ndjson": {
"schema": {
"title": "Array",
"type": "array",
"items": {
"$ref": "#/components/schemas/PTXPlus.Service.DTO.Historical.Specification.Traffic.V2.JSON.VDLive"
},
"xml": {
"name": "List`1"
}
},
"example": "{\"VDID\":\"string\",\"HostAuthorityCode\":\"string\",\"AuthorityCode\":\"string\",\"SubAuthorityCode\":\"string\",\"Status\":0,\"DataCollectTime\":\"0001-01-01T00:00:00+08:06\",\"SrcUpdateTime\":\"0001-01-01T00:00:00+08:06\",\"UpdateTime\":\"0001-01-01T00:00:00+08:06\",\"InfoTime\":\"0001-01-01T00:00:00+08:06\",\"InfoDate\":\"string\"}\n{\"VDID\":\"string\",\"HostAuthorityCode\":\"string\",\"AuthorityCode\":\"string\",\"SubAuthorityCode\":\"string\",\"Status\":0,\"DataCollectTime\":\"0001-01-01T00:00:00+08:06\",\"SrcUpdateTime\":\"0001-01-01T00:00:00+08:06\",\"UpdateTime\":\"0001-01-01T00:00:00+08:06\",\"InfoTime\":\"0001-01-01T00:00:00+08:06\",\"InfoDate\":\"string\"}"
},
"text/csv": {
"schema": {
"title": "Array",
"type": "array",
"items": {
"$ref": "#/components/schemas/PTXPlus.Service.DTO.Historical.Specification.Traffic.V2.CSV.VDLive"
},
"xml": {
"name": "List`1"
}
},
"example": "VDID,HostAuthorityCode,AuthorityCode,SubAuthorityCode,LinkFlowsLinkID,LinkFlowsLanesLaneID,LinkFlowsLanesLaneType,LinkFlowsLanesSpeed,LinkFlowsLanesOccupancy,LinkFlowsLanesVehiclesVehicleType,LinkFlowsLanesVehiclesVolume,LinkFlowsLanesVehiclesSpeed,LinkFlowsLanesErrorDiags,LinkFlowsLanesRecurrentTimes,LinkFlowsLanesRecurrentZeroTimes,Status,DataCollectTime,SrcUpdateTime,UpdateTime,InfoTime,InfoDate\n\"string\",\"string\",\"string\",\"string\",\"string\",0,0,0,0,\"string\",0,,\"string\",0,0,正常,0001-01-01T00:00:00+08:06,0001-01-01T00:00:00+08:06,0001-01-01T00:00:00+08:06,0001-01-01T00:00:00+08:06,\"string\"\n\"string\",\"string\",\"string\",\"string\",\"string\",0,0,0,0,\"string\",0,,\"string\",0,0,正常,0001-01-01T00:00:00+08:06,0001-01-01T00:00:00+08:06,0001-01-01T00:00:00+08:06,0001-01-01T00:00:00+08:06,\"string\"\n"
}
}
},
"249": {
"description": "加入參數'?Meta=true'即可查詢此API服務的統計資訊",
"content": {
"text/ndjson": {
"schema": {
"$ref": "#/components/schemas/PTXPlus.Service.DTO.Shared.Specification.Base.MetaFilter.Meta"
}
},
"text/csv": {
"schema": {
"$ref": "#/components/schemas/PTXPlus.Service.DTO.Shared.Specification.Base.MetaFilter.Meta"
}
}
}
}
}
}
},
"/v2/Historical/Road/Traffic/CMS/Highway": {
"get": {
"tags": [
"Traffic-Highway"
],
"summary": "取得指定[日期]的[公路局]資訊可變標誌歷史資料",
"description": "取得指定[日期]的[公路局]資訊可變標誌歷史資料",
"operationId": "CMS_Highway",
"parameters": [
{
"name": "Dates",
"in": "query",
"description": "本歷史資料提供範圍為2021年7月至昨天(每天早上8點更新),欲查詢之日期 / 區間(日期格式為: 'yyyy-MM-dd',查詢多筆使用逗號','分隔,查詢區間使用波浪號'~'分隔,查詢天數最多7日,例如: '2021-07-01,2021-07-03~2021-07-05')",
"required": true,
"schema": {
"title": "DateList",
"type": "string",
"xml": {
"name": "DateList"
}
}
},
{
"name": "$top",
"in": "query",
"description": "取前幾筆",
"schema": {
"type": "integer",
"default": 30
}
},
{
"name": "$format",
"in": "query",
"description": "指定來源格式",
"required": true,
"schema": {
"enum": [
"JSONL",
"CSV"
],
"type": "string"
}
},
{
"name": "Meta",
"in": "query",
"description": "加入參數'?Meta=true'即可查詢此API服務的統計資訊",
"schema": {
"enum": [
"true"
],
"type": "string",
"default": ""
}
}
],
"responses": {
"200": {
"description": "OK",
"content": {
"text/ndjson": {
"schema": {
"title": "Array",
"type": "array",
"items": {
"$ref": "#/components/schemas/PTXPlus.Service.DTO.Historical.Specification.Traffic.V2.JSON.CMS"
},
"xml": {
"name": "List`1"
}
},
"example": "{\"CMSID\":\"string\",\"AuthorityCode\":\"string\",\"SubAuthorityCode\":\"string\",\"LinkID\":\"string\",\"LocationType\":0,\"PositionLon\":0,\"PositionLat\":0,\"Geohash\":\"string\",\"CountyID\":\"string\",\"CountyName\":\"string\",\"TownID\":\"string\",\"TownName\":\"string\",\"RoadID\":\"string\",\"RoadName\":\"string\",\"RoadDirection\":\"string\",\"LocationMile\":\"string\",\"LayoutMapURL\":\"string\",\"SrcUpdateTime\":\"0001-01-01T00:00:00+08:06\",\"UpdateTime\":\"0001-01-01T00:00:00+08:06\",\"InfoTime\":\"0001-01-01T00:00:00+08:06\",\"InfoDate\":\"string\"}\n{\"CMSID\":\"string\",\"AuthorityCode\":\"string\",\"SubAuthorityCode\":\"string\",\"LinkID\":\"string\",\"LocationType\":0,\"PositionLon\":0,\"PositionLat\":0,\"Geohash\":\"string\",\"CountyID\":\"string\",\"CountyName\":\"string\",\"TownID\":\"string\",\"TownName\":\"string\",\"RoadID\":\"string\",\"RoadName\":\"string\",\"RoadDirection\":\"string\",\"LocationMile\":\"string\",\"LayoutMapURL\":\"string\",\"SrcUpdateTime\":\"0001-01-01T00:00:00+08:06\",\"UpdateTime\":\"0001-01-01T00:00:00+08:06\",\"InfoTime\":\"0001-01-01T00:00:00+08:06\",\"InfoDate\":\"string\"}"
},
"text/csv": {
"schema": {
"title": "Array",
"type": "array",
"items": {
"$ref": "#/components/schemas/PTXPlus.Service.DTO.Historical.Specification.Traffic.V2.CSV.CMS"
},
"xml": {
"name": "List`1"
}
},
"example": "CMSID,AuthorityCode,SubAuthorityCode,LinkID,LocationType,PositionLon,PositionLat,Geohash,CountyID,CountyName,TownID,TownName,RoadID,RoadName,RoadClass,RoadDirection,RoadSectionStart,RoadSectionEnd,LocationMile,LayoutMapURL,SrcUpdateTime,UpdateTime,InfoTime,InfoDate\n\"string\",\"string\",\"string\",\"string\",0,0,0,\"string\",\"string\",\"string\",\"string\",\"string\",\"string\",\"string\",,\"string\",\"string\",\"string\",\"string\",\"string\",0001-01-01T00:00:00+08:06,0001-01-01T00:00:00+08:06,0001-01-01T00:00:00+08:06,\"string\"\n\"string\",\"string\",\"string\",\"string\",0,0,0,\"string\",\"string\",\"string\",\"string\",\"string\",\"string\",\"string\",,\"string\",\"string\",\"string\",\"string\",\"string\",0001-01-01T00:00:00+08:06,0001-01-01T00:00:00+08:06,0001-01-01T00:00:00+08:06,\"string\"\n"
}
}
},
"249": {
"description": "加入參數'?Meta=true'即可查詢此API服務的統計資訊",
"content": {
"text/ndjson": {
"schema": {
"$ref": "#/components/schemas/PTXPlus.Service.DTO.Shared.Specification.Base.MetaFilter.Meta"
}
},
"text/csv": {
"schema": {
"$ref": "#/components/schemas/PTXPlus.Service.DTO.Shared.Specification.Base.MetaFilter.Meta"
}
}
}
}
}
}
},
"/v2/Historical/Road/Traffic/Live/CMS/Highway": {
"get": {
"tags": [
"Traffic-Highway"
],
"summary": "取得指定[日期]的[公路局]資訊可變標誌即時資訊歷史資料",
"description": "取得指定[日期]的[公路局]資訊可變標誌即時資訊歷史資料",
"operationId": "CMSLive_Highway",
"parameters": [
{
"name": "Dates",
"in": "query",
"description": "本歷史資料提供範圍為2021年7月至昨天(每天早上8點更新),欲查詢之日期 / 區間(日期格式為: 'yyyy-MM-dd',查詢多筆使用逗號','分隔,查詢區間使用波浪號'~'分隔,查詢天數最多7日,例如: '2021-07-01,2021-07-03~2021-07-05')",
"required": true,
"schema": {
"title": "DateList",
"type": "string",
"xml": {
"name": "DateList"
}
}
},
{
"name": "$top",
"in": "query",
"description": "取前幾筆",
"schema": {
"type": "integer",
"default": 30
}
},
{
"name": "$format",
"in": "query",
"description": "指定來源格式",
"required": true,
"schema": {
"enum": [
"JSONL",
"CSV"
],
"type": "string"
}
},
{
"name": "Meta",
"in": "query",
"description": "加入參數'?Meta=true'即可查詢此API服務的統計資訊",
"schema": {
"enum": [
"true"
],
"type": "string",
"default": ""
}
}
],
"responses": {
"200": {
"description": "OK",
"content": {
"text/ndjson": {
"schema": {
"title": "Array",
"type": "array",
"items": {
"$ref": "#/components/schemas/PTXPlus.Service.DTO.Historical.Specification.Traffic.V2.JSON.CMSLive"
},
"xml": {
"name": "List`1"
}
},
"example": "{\"CMSID\":\"string\",\"AuthorityCode\":\"string\",\"SubAuthorityCode\":\"string\",\"MessageStatus\":0,\"Status\":0,\"DataCollectTime\":\"0001-01-01T00:00:00+08:06\",\"SrcUpdateTime\":\"0001-01-01T00:00:00+08:06\",\"UpdateTime\":\"0001-01-01T00:00:00+08:06\",\"InfoTime\":\"0001-01-01T00:00:00+08:06\",\"InfoDate\":\"string\"}\n{\"CMSID\":\"string\",\"AuthorityCode\":\"string\",\"SubAuthorityCode\":\"string\",\"MessageStatus\":0,\"Status\":0,\"DataCollectTime\":\"0001-01-01T00:00:00+08:06\",\"SrcUpdateTime\":\"0001-01-01T00:00:00+08:06\",\"UpdateTime\":\"0001-01-01T00:00:00+08:06\",\"InfoTime\":\"0001-01-01T00:00:00+08:06\",\"InfoDate\":\"string\"}"
},
"text/csv": {
"schema": {
"title": "Array",
"type": "array",
"items": {
"$ref": "#/components/schemas/PTXPlus.Service.DTO.Historical.Specification.Traffic.V2.CSV.CMSLive"
},
"xml": {
"name": "List`1"
}
},
"example": "CMSID,AuthorityCode,SubAuthorityCode,MessageStatus,MessagesText,MessagesImage,MessagesType,MessagesPriority,Status,DataCollectTime,SrcUpdateTime,UpdateTime,InfoTime,InfoDate\n\"string\",\"string\",\"string\",目前無資料顯示,\"string\",\"string\",,,正常,0001-01-01T00:00:00+08:06,0001-01-01T00:00:00+08:06,0001-01-01T00:00:00+08:06,0001-01-01T00:00:00+08:06,\"string\"\n\"string\",\"string\",\"string\",目前無資料顯示,\"string\",\"string\",,,正常,0001-01-01T00:00:00+08:06,0001-01-01T00:00:00+08:06,0001-01-01T00:00:00+08:06,0001-01-01T00:00:00+08:06,\"string\"\n"
}
}
},
"249": {
"description": "加入參數'?Meta=true'即可查詢此API服務的統計資訊",
"content": {
"text/ndjson": {
"schema": {
"$ref": "#/components/schemas/PTXPlus.Service.DTO.Shared.Specification.Base.MetaFilter.Meta"
}
},
"text/csv": {
"schema": {
"$ref": "#/components/schemas/PTXPlus.Service.DTO.Shared.Specification.Base.MetaFilter.Meta"
}
}
}
}
}
}
},
"/v2/Historical/Road/Traffic/CCTV/Highway": {
"get": {
"tags": [
"Traffic-Highway"
],
"summary": "取得指定[日期]的[公路局]閉路電視攝影機歷史資料",
"description": "取得指定[日期]的[公路局]閉路電視攝影機歷史資料",
"operationId": "CCTV_Highway",
"parameters": [
{
"name": "Dates",
"in": "query",
"description": "本歷史資料提供範圍為2021年7月至昨天(每天早上8點更新),欲查詢之日期 / 區間(日期格式為: 'yyyy-MM-dd',查詢多筆使用逗號','分隔,查詢區間使用波浪號'~'分隔,查詢天數最多7日,例如: '2021-07-01,2021-07-03~2021-07-05')",
"required": true,
"schema": {
"title": "DateList",
"type": "string",
"xml": {
"name": "DateList"
}
}
},
{
"name": "$top",
"in": "query",
"description": "取前幾筆",
"schema": {
"type": "integer",
"default": 30
}
},
{
"name": "$format",
"in": "query",
"description": "指定來源格式",
"required": true,
"schema": {
"enum": [
"JSONL",
"CSV"
],
"type": "string"
}
},
{
"name": "Meta",
"in": "query",
"description": "加入參數'?Meta=true'即可查詢此API服務的統計資訊",
"schema": {
"enum": [
"true"
],
"type": "string",
"default": ""
}
}
],
"responses": {
"200": {
"description": "OK",
"content": {
"text/ndjson": {
"schema": {
"title": "Array",
"type": "array",
"items": {
"$ref": "#/components/schemas/PTXPlus.Service.DTO.Historical.Specification.Traffic.V2.JSON.CCTV"
},
"xml": {
"name": "List`1"
}
},
"example": "{\"CCTVID\":\"string\",\"AuthorityCode\":\"string\",\"SubAuthorityCode\":\"string\",\"LinkID\":\"string\",\"VideoStreamURL\":\"string\",\"LocationType\":0,\"PositionLon\":0,\"PositionLat\":0,\"Geohash\":\"string\",\"CountyID\":\"string\",\"CountyName\":\"string\",\"TownID\":\"string\",\"TownName\":\"string\",\"RoadID\":\"string\",\"RoadName\":\"string\",\"RoadDirection\":\"string\",\"LocationMile\":\"string\",\"LayoutMapURL\":\"string\",\"SrcUpdateTime\":\"0001-01-01T00:00:00+08:06\",\"UpdateTime\":\"0001-01-01T00:00:00+08:06\",\"InfoTime\":\"0001-01-01T00:00:00+08:06\",\"InfoDate\":\"string\"}\n{\"CCTVID\":\"string\",\"AuthorityCode\":\"string\",\"SubAuthorityCode\":\"string\",\"LinkID\":\"string\",\"VideoStreamURL\":\"string\",\"LocationType\":0,\"PositionLon\":0,\"PositionLat\":0,\"Geohash\":\"string\",\"CountyID\":\"string\",\"CountyName\":\"string\",\"TownID\":\"string\",\"TownName\":\"string\",\"RoadID\":\"string\",\"RoadName\":\"string\",\"RoadDirection\":\"string\",\"LocationMile\":\"string\",\"LayoutMapURL\":\"string\",\"SrcUpdateTime\":\"0001-01-01T00:00:00+08:06\",\"UpdateTime\":\"0001-01-01T00:00:00+08:06\",\"InfoTime\":\"0001-01-01T00:00:00+08:06\",\"InfoDate\":\"string\"}"
},
"text/csv": {
"schema": {
"title": "Array",
"type": "array",
"items": {
"$ref": "#/components/schemas/PTXPlus.Service.DTO.Historical.Specification.Traffic.V2.CSV.CCTV"
},
"xml": {
"name": "List`1"
}
},
"example": "CCTVID,AuthorityCode,SubAuthorityCode,LinkID,LookingViewsBearing,LookingViewsImage,VideoStreamURL,LocationType,PositionLon,PositionLat,Geohash,CountyID,CountyName,TownID,TownName,RoadID,RoadName,RoadClass,RoadDirection,RoadSectionStart,RoadSectionEnd,LocationMile,LayoutMapURL,SrcUpdateTime,UpdateTime,InfoTime,InfoDate\n\"string\",\"string\",\"string\",\"string\",,\"string\",\"string\",0,0,0,\"string\",\"string\",\"string\",\"string\",\"string\",\"string\",\"string\",,\"string\",\"string\",\"string\",\"string\",\"string\",0001-01-01T00:00:00+08:06,0001-01-01T00:00:00+08:06,0001-01-01T00:00:00+08:06,\"string\"\n\"string\",\"string\",\"string\",\"string\",,\"string\",\"string\",0,0,0,\"string\",\"string\",\"string\",\"string\",\"string\",\"string\",\"string\",,\"string\",\"string\",\"string\",\"string\",\"string\",0001-01-01T00:00:00+08:06,0001-01-01T00:00:00+08:06,0001-01-01T00:00:00+08:06,\"string\"\n"
}
}
},
"249": {
"description": "加入參數'?Meta=true'即可查詢此API服務的統計資訊",
"content": {
"text/ndjson": {
"schema": {
"$ref": "#/components/schemas/PTXPlus.Service.DTO.Shared.Specification.Base.MetaFilter.Meta"
}
},
"text/csv": {
"schema": {
"$ref": "#/components/schemas/PTXPlus.Service.DTO.Shared.Specification.Base.MetaFilter.Meta"
}
}
}
}
}
}
},
"/v2/Historical/Road/Traffic/ETag/Highway": {
"get": {
"tags": [
"Traffic-Highway"
],
"summary": "取得指定[日期]的[公路局]電子標籤門架歷史資料",
"description": "取得指定[日期]的[公路局]電子標籤門架歷史資料",
"operationId": "ETag_Highway",
"parameters": [
{
"name": "Dates",
"in": "query",
"description": "本歷史資料提供範圍為2021年7月至昨天(每天早上8點更新),欲查詢之日期 / 區間(日期格式為: 'yyyy-MM-dd',查詢多筆使用逗號','分隔,查詢區間使用波浪號'~'分隔,查詢天數最多7日,例如: '2021-07-01,2021-07-03~2021-07-05')",
"required": true,
"schema": {
"title": "DateList",
"type": "string",
"xml": {
"name": "DateList"
}
}
},
{
"name": "$top",
"in": "query",
"description": "取前幾筆",
"schema": {
"type": "integer",
"default": 30
}
},
{
"name": "$format",
"in": "query",
"description": "指定來源格式",
"required": true,
"schema": {
"enum": [
"JSONL",
"CSV"
],
"type": "string"
}
},
{
"name": "Meta",
"in": "query",
"description": "加入參數'?Meta=true'即可查詢此API服務的統計資訊",
"schema": {
"enum": [
"true"
],
"type": "string",
"default": ""
}
}
],
"responses": {
"200": {
"description": "OK",
"content": {
"text/ndjson": {
"schema": {
"title": "Array",
"type": "array",
"items": {
"$ref": "#/components/schemas/PTXPlus.Service.DTO.Historical.Specification.Traffic.V2.JSON.ETag"
},
"xml": {
"name": "List`1"
}
},
"example": "{\"ETagGantryID\":\"string\",\"AuthorityCode\":\"string\",\"SubAuthorityCode\":\"string\",\"LinkID\":\"string\",\"LocationType\":0,\"PositionLon\":0,\"PositionLat\":0,\"Geohash\":\"string\",\"CountyID\":\"string\",\"CountyName\":\"string\",\"TownID\":\"string\",\"TownName\":\"string\",\"RoadID\":\"string\",\"RoadName\":\"string\",\"RoadDirection\":\"string\",\"LocationMile\":\"string\",\"LayoutMapURL\":\"string\",\"SrcUpdateTime\":\"0001-01-01T00:00:00+08:06\",\"UpdateTime\":\"0001-01-01T00:00:00+08:06\",\"InfoTime\":\"0001-01-01T00:00:00+08:06\",\"InfoDate\":\"string\"}\n{\"ETagGantryID\":\"string\",\"AuthorityCode\":\"string\",\"SubAuthorityCode\":\"string\",\"LinkID\":\"string\",\"LocationType\":0,\"PositionLon\":0,\"PositionLat\":0,\"Geohash\":\"string\",\"CountyID\":\"string\",\"CountyName\":\"string\",\"TownID\":\"string\",\"TownName\":\"string\",\"RoadID\":\"string\",\"RoadName\":\"string\",\"RoadDirection\":\"string\",\"LocationMile\":\"string\",\"LayoutMapURL\":\"string\",\"SrcUpdateTime\":\"0001-01-01T00:00:00+08:06\",\"UpdateTime\":\"0001-01-01T00:00:00+08:06\",\"InfoTime\":\"0001-01-01T00:00:00+08:06\",\"InfoDate\":\"string\"}"
},
"text/csv": {
"schema": {
"title": "Array",
"type": "array",
"items": {
"$ref": "#/components/schemas/PTXPlus.Service.DTO.Historical.Specification.Traffic.V2.CSV.ETag"
},
"xml": {
"name": "List`1"
}
},
"example": "ETagGantryID,AuthorityCode,SubAuthorityCode,LinkID,LocationType,PositionLon,PositionLat,Geohash,CountyID,CountyName,TownID,TownName,RoadID,RoadName,RoadClass,RoadDirection,RoadSectionStart,RoadSectionEnd,LocationMile,LayoutMapURL,SrcUpdateTime,UpdateTime,InfoTime,InfoDate\n\"string\",\"string\",\"string\",\"string\",0,0,0,\"string\",\"string\",\"string\",\"string\",\"string\",\"string\",\"string\",,\"string\",\"string\",\"string\",\"string\",\"string\",0001-01-01T00:00:00+08:06,0001-01-01T00:00:00+08:06,0001-01-01T00:00:00+08:06,\"string\"\n\"string\",\"string\",\"string\",\"string\",0,0,0,\"string\",\"string\",\"string\",\"string\",\"string\",\"string\",\"string\",,\"string\",\"string\",\"string\",\"string\",\"string\",0001-01-01T00:00:00+08:06,0001-01-01T00:00:00+08:06,0001-01-01T00:00:00+08:06,\"string\"\n"
}
}
},
"249": {
"description": "加入參數'?Meta=true'即可查詢此API服務的統計資訊",
"content": {
"text/ndjson": {
"schema": {
"$ref": "#/components/schemas/PTXPlus.Service.DTO.Shared.Specification.Base.MetaFilter.Meta"
}
},
"text/csv": {
"schema": {
"$ref": "#/components/schemas/PTXPlus.Service.DTO.Shared.Specification.Base.MetaFilter.Meta"
}
}
}
}
}
}
},
"/v2/Historical/Road/Traffic/ETagPair/Highway": {
"get": {
"tags": [
"Traffic-Highway"
],
"summary": "取得指定[日期]的[公路局]電子標籤門架配對路段歷史資料",
"description": "取得指定[日期]的[公路局]電子標籤門架配對路段歷史資料",
"operationId": "ETagPair_Highway",
"parameters": [
{
"name": "Dates",
"in": "query",
"description": "本歷史資料提供範圍為2021年7月至昨天(每天早上8點更新),欲查詢之日期 / 區間(日期格式為: 'yyyy-MM-dd',查詢多筆使用逗號','分隔,查詢區間使用波浪號'~'分隔,查詢天數最多7日,例如: '2021-07-01,2021-07-03~2021-07-05')",
"required": true,
"schema": {
"title": "DateList",
"type": "string",
"xml": {
"name": "DateList"
}
}
},
{
"name": "$top",
"in": "query",
"description": "取前幾筆",
"schema": {
"type": "integer",
"default": 30
}
},
{
"name": "$format",
"in": "query",
"description": "指定來源格式",
"required": true,
"schema": {
"enum": [
"JSONL",
"CSV"
],
"type": "string"
}
},
{
"name": "Meta",
"in": "query",
"description": "加入參數'?Meta=true'即可查詢此API服務的統計資訊",
"schema": {
"enum": [
"true"
],
"type": "string",
"default": ""
}
}
],
"responses": {
"200": {
"description": "OK",
"content": {
"text/ndjson": {
"schema": {
"title": "Array",
"type": "array",
"items": {
"$ref": "#/components/schemas/PTXPlus.Service.DTO.Historical.Specification.Traffic.V2.JSON.ETagPair"
},
"xml": {
"name": "List`1"
}
},
"example": "{\"ETagPairID\":\"string\",\"AuthorityCode\":\"string\",\"SubAuthorityCode\":\"string\",\"StartETagGantryID\":\"string\",\"EndETagGantryID\":\"string\",\"Description\":\"string\",\"Distance\":0,\"StartLinkID\":\"string\",\"EndLinkID\":\"string\",\"SectionID\":\"string\",\"Geometry\":\"string\",\"SrcUpdateTime\":\"0001-01-01T00:00:00+08:06\",\"UpdateTime\":\"0001-01-01T00:00:00+08:06\",\"InfoTime\":\"0001-01-01T00:00:00+08:06\",\"InfoDate\":\"string\"}\n{\"ETagPairID\":\"string\",\"AuthorityCode\":\"string\",\"SubAuthorityCode\":\"string\",\"StartETagGantryID\":\"string\",\"EndETagGantryID\":\"string\",\"Description\":\"string\",\"Distance\":0,\"StartLinkID\":\"string\",\"EndLinkID\":\"string\",\"SectionID\":\"string\",\"Geometry\":\"string\",\"SrcUpdateTime\":\"0001-01-01T00:00:00+08:06\",\"UpdateTime\":\"0001-01-01T00:00:00+08:06\",\"InfoTime\":\"0001-01-01T00:00:00+08:06\",\"InfoDate\":\"string\"}"
},
"text/csv": {
"schema": {
"title": "Array",
"type": "array",
"items": {
"$ref": "#/components/schemas/PTXPlus.Service.DTO.Historical.Specification.Traffic.V2.CSV.ETagPair"
},
"xml": {
"name": "List`1"
}
},
"example": "ETagPairID,AuthorityCode,SubAuthorityCode,StartETagGantryID,EndETagGantryID,Description,Distance,StartLinkID,EndLinkID,LinkIDsLinkIDs,SectionID,Geometry,SrcUpdateTime,UpdateTime,InfoTime,InfoDate\n\"string\",\"string\",\"string\",\"string\",\"string\",\"string\",0,\"string\",\"string\",\"string\",\"string\",\"string\",0001-01-01T00:00:00+08:06,0001-01-01T00:00:00+08:06,0001-01-01T00:00:00+08:06,\"string\"\n\"string\",\"string\",\"string\",\"string\",\"string\",\"string\",0,\"string\",\"string\",\"string\",\"string\",\"string\",0001-01-01T00:00:00+08:06,0001-01-01T00:00:00+08:06,0001-01-01T00:00:00+08:06,\"string\"\n"
}
}
},
"249": {
"description": "加入參數'?Meta=true'即可查詢此API服務的統計資訊",
"content": {
"text/ndjson": {
"schema": {
"$ref": "#/components/schemas/PTXPlus.Service.DTO.Shared.Specification.Base.MetaFilter.Meta"
}
},
"text/csv": {
"schema": {
"$ref": "#/components/schemas/PTXPlus.Service.DTO.Shared.Specification.Base.MetaFilter.Meta"
}
}
}
}
}
}
},
"/v2/Historical/Road/Traffic/Live/ETag/Highway": {
"get": {
"tags": [
"Traffic-Highway"
],
"summary": "取得指定[日期]的[公路局]電子標籤門架配對路段即時路況歷史資料",
"description": "取得指定[日期]的[公路局]電子標籤門架配對路段即時路況歷史資料",
"operationId": "ETagPairLive_Highway",
"parameters": [
{
"name": "Dates",
"in": "query",
"description": "本歷史資料提供範圍為2021年7月至昨天(每天早上8點更新),欲查詢之日期 / 區間(日期格式為: 'yyyy-MM-dd',查詢多筆使用逗號','分隔,查詢區間使用波浪號'~'分隔,查詢天數最多7日,例如: '2021-07-01,2021-07-03~2021-07-05')",
"required": true,
"schema": {
"title": "DateList",
"type": "string",
"xml": {
"name": "DateList"
}
}
},
{
"name": "$top",
"in": "query",
"description": "取前幾筆",
"schema": {
"type": "integer",
"default": 30
}
},
{
"name": "$format",
"in": "query",
"description": "指定來源格式",
"required": true,
"schema": {
"enum": [
"JSONL",
"CSV"
],
"type": "string"
}
},
{
"name": "Meta",
"in": "query",
"description": "加入參數'?Meta=true'即可查詢此API服務的統計資訊",
"schema": {
"enum": [
"true"
],
"type": "string",
"default": ""
}
}
],
"responses": {
"200": {
"description": "OK",
"content": {
"text/ndjson": {
"schema": {
"title": "Array",
"type": "array",
"items": {
"$ref": "#/components/schemas/PTXPlus.Service.DTO.Historical.Specification.Traffic.V2.JSON.ETagPairLive"
},
"xml": {
"name": "List`1"
}
},
"example": "{\"ETagPairID\":\"string\",\"AuthorityCode\":\"string\",\"SubAuthorityCode\":\"string\",\"StartETagStatus\":0,\"EndETagStatus\":0,\"StartTime\":\"0001-01-01T00:00:00+08:06\",\"EndTime\":\"0001-01-01T00:00:00+08:06\",\"DataCollectTime\":\"0001-01-01T00:00:00+08:06\",\"SrcUpdateTime\":\"0001-01-01T00:00:00+08:06\",\"UpdateTime\":\"0001-01-01T00:00:00+08:06\",\"InfoTime\":\"0001-01-01T00:00:00+08:06\",\"InfoDate\":\"string\"}\n{\"ETagPairID\":\"string\",\"AuthorityCode\":\"string\",\"SubAuthorityCode\":\"string\",\"StartETagStatus\":0,\"EndETagStatus\":0,\"StartTime\":\"0001-01-01T00:00:00+08:06\",\"EndTime\":\"0001-01-01T00:00:00+08:06\",\"DataCollectTime\":\"0001-01-01T00:00:00+08:06\",\"SrcUpdateTime\":\"0001-01-01T00:00:00+08:06\",\"UpdateTime\":\"0001-01-01T00:00:00+08:06\",\"InfoTime\":\"0001-01-01T00:00:00+08:06\",\"InfoDate\":\"string\"}"
},
"text/csv": {
"schema": {
"title": "Array",
"type": "array",
"items": {
"$ref": "#/components/schemas/PTXPlus.Service.DTO.Historical.Specification.Traffic.V2.CSV.ETagPairLive"
},
"xml": {
"name": "List`1"
}
},
"example": "ETagPairID,AuthorityCode,SubAuthorityCode,StartETagStatus,EndETagStatus,FlowsVehicleType,FlowsTravelTime,FlowsStandardDeviation,FlowsSpaceMeanSpeed,FlowsVehicleCount,StartTime,EndTime,DataCollectTime,SrcUpdateTime,UpdateTime,InfoTime,InfoDate\n\"string\",\"string\",\"string\",正常,正常,0,0,0,0,0,0001-01-01T00:00:00+08:06,0001-01-01T00:00:00+08:06,0001-01-01T00:00:00+08:06,0001-01-01T00:00:00+08:06,0001-01-01T00:00:00+08:06,0001-01-01T00:00:00+08:06,\"string\"\n\"string\",\"string\",\"string\",正常,正常,0,0,0,0,0,0001-01-01T00:00:00+08:06,0001-01-01T00:00:00+08:06,0001-01-01T00:00:00+08:06,0001-01-01T00:00:00+08:06,0001-01-01T00:00:00+08:06,0001-01-01T00:00:00+08:06,\"string\"\n"
}
}
},
"249": {
"description": "加入參數'?Meta=true'即可查詢此API服務的統計資訊",
"content": {
"text/ndjson": {
"schema": {
"$ref": "#/components/schemas/PTXPlus.Service.DTO.Shared.Specification.Base.MetaFilter.Meta"
}
},
"text/csv": {
"schema": {
"$ref": "#/components/schemas/PTXPlus.Service.DTO.Shared.Specification.Base.MetaFilter.Meta"
}
}
}
}
}
}
},
"/v2/Historical/Road/Traffic/Section/Highway": {
"get": {
"tags": [
"Traffic-Highway"
],
"summary": "取得指定[日期]的[公路局]發佈路段歷史資料",
"description": "取得指定[日期]的[公路局]發佈路段歷史資料",
"operationId": "Section_Highway",
"parameters": [
{
"name": "Dates",
"in": "query",
"description": "本歷史資料提供範圍為2021年7月至昨天(每天早上8點更新),欲查詢之日期 / 區間(日期格式為: 'yyyy-MM-dd',查詢多筆使用逗號','分隔,查詢區間使用波浪號'~'分隔,查詢天數最多7日,例如: '2021-07-01,2021-07-03~2021-07-05')",
"required": true,
"schema": {
"title": "DateList",
"type": "string",
"xml": {
"name": "DateList"
}
}
},
{
"name": "$top",
"in": "query",
"description": "取前幾筆",
"schema": {
"type": "integer",
"default": 30
}
},
{
"name": "$format",
"in": "query",
"description": "指定來源格式",
"required": true,
"schema": {
"enum": [
"JSONL",
"CSV"
],
"type": "string"
}
},
{
"name": "Meta",
"in": "query",
"description": "加入參數'?Meta=true'即可查詢此API服務的統計資訊",
"schema": {
"enum": [
"true"
],
"type": "string",
"default": ""
}
}
],
"responses": {
"200": {
"description": "OK",
"content": {
"text/ndjson": {
"schema": {
"title": "Array",
"type": "array",
"items": {
"$ref": "#/components/schemas/PTXPlus.Service.DTO.Historical.Specification.Traffic.V2.JSON.Section"
},
"xml": {
"name": "List`1"
}
},
"example": "{\"SectionID\":\"string\",\"AuthorityCode\":\"string\",\"SubAuthorityCode\":\"string\",\"SectionName\":\"string\",\"RoadID\":\"string\",\"RoadName\":\"string\",\"RoadClass\":0,\"RoadDirection\":\"string\",\"SrcUpdateTime\":\"0001-01-01T00:00:00+08:06\",\"UpdateTime\":\"0001-01-01T00:00:00+08:06\",\"InfoTime\":\"0001-01-01T00:00:00+08:06\",\"InfoDate\":\"string\"}\n{\"SectionID\":\"string\",\"AuthorityCode\":\"string\",\"SubAuthorityCode\":\"string\",\"SectionName\":\"string\",\"RoadID\":\"string\",\"RoadName\":\"string\",\"RoadClass\":0,\"RoadDirection\":\"string\",\"SrcUpdateTime\":\"0001-01-01T00:00:00+08:06\",\"UpdateTime\":\"0001-01-01T00:00:00+08:06\",\"InfoTime\":\"0001-01-01T00:00:00+08:06\",\"InfoDate\":\"string\"}"
},
"text/csv": {
"schema": {
"title": "Array",
"type": "array",
"items": {
"$ref": "#/components/schemas/PTXPlus.Service.DTO.Historical.Specification.Traffic.V2.CSV.Section"
},
"xml": {
"name": "List`1"
}
},
"example": "SectionID,AuthorityCode,SubAuthorityCode,SectionName,RoadID,RoadName,RoadClass,RoadDirection,RoadSectionStart,RoadSectionEnd,SectionLength,SectionMileStartKM,SectionMileEndKM,SectionStartPositionLat,SectionStartPositionLon,SectionEndPositionLat,SectionEndPositionLon,SpeedLimit,SrcUpdateTime,UpdateTime,InfoTime,InfoDate\n\"string\",\"string\",\"string\",\"string\",\"string\",\"string\",國道,\"string\",\"string\",\"string\",,\"string\",\"string\",,,,,,0001-01-01T00:00:00+08:06,0001-01-01T00:00:00+08:06,0001-01-01T00:00:00+08:06,\"string\"\n\"string\",\"string\",\"string\",\"string\",\"string\",\"string\",國道,\"string\",\"string\",\"string\",,\"string\",\"string\",,,,,,0001-01-01T00:00:00+08:06,0001-01-01T00:00:00+08:06,0001-01-01T00:00:00+08:06,\"string\"\n"
}
}
},
"249": {
"description": "加入參數'?Meta=true'即可查詢此API服務的統計資訊",
"content": {
"text/ndjson": {
"schema": {
"$ref": "#/components/schemas/PTXPlus.Service.DTO.Shared.Specification.Base.MetaFilter.Meta"
}
},
"text/csv": {
"schema": {
"$ref": "#/components/schemas/PTXPlus.Service.DTO.Shared.Specification.Base.MetaFilter.Meta"
}
}
}
}
}
}
},
"/v2/Historical/Road/Traffic/SectionLink/Highway": {
"get": {
"tags": [
"Traffic-Highway"
],
"summary": "取得指定[日期]的[公路局]發布路段之基礎路段組合歷史資料",
"description": "取得指定[日期]的[公路局]發布路段之基礎路段組合歷史資料",
"operationId": "SectionLink_Highway",
"parameters": [
{
"name": "Dates",
"in": "query",
"description": "本歷史資料提供範圍為2021年7月至昨天(每天早上8點更新),欲查詢之日期 / 區間(日期格式為: 'yyyy-MM-dd',查詢多筆使用逗號','分隔,查詢區間使用波浪號'~'分隔,查詢天數最多7日,例如: '2021-07-01,2021-07-03~2021-07-05')",
"required": true,
"schema": {
"title": "DateList",
"type": "string",
"xml": {
"name": "DateList"
}
}
},
{
"name": "$top",
"in": "query",
"description": "取前幾筆",
"schema": {
"type": "integer",
"default": 30
}
},
{
"name": "$format",
"in": "query",
"description": "指定來源格式",
"required": true,
"schema": {
"enum": [
"JSONL",
"CSV"
],
"type": "string"
}
},
{
"name": "Meta",
"in": "query",
"description": "加入參數'?Meta=true'即可查詢此API服務的統計資訊",
"schema": {
"enum": [
"true"
],
"type": "string",
"default": ""
}
}
],
"responses": {
"200": {
"description": "OK",
"content": {
"text/ndjson": {
"schema": {
"title": "Array",
"type": "array",
"items": {
"$ref": "#/components/schemas/PTXPlus.Service.DTO.Historical.Specification.Traffic.V2.JSON.SectionLink"
},
"xml": {
"name": "List`1"
}
},
"example": "{\"SectionID\":\"string\",\"AuthorityCode\":\"string\",\"SubAuthorityCode\":\"string\",\"StartLinkID\":\"string\",\"EndLinkID\":\"string\",\"SrcUpdateTime\":\"0001-01-01T00:00:00+08:06\",\"UpdateTime\":\"0001-01-01T00:00:00+08:06\",\"InfoTime\":\"0001-01-01T00:00:00+08:06\",\"InfoDate\":\"string\"}\n{\"SectionID\":\"string\",\"AuthorityCode\":\"string\",\"SubAuthorityCode\":\"string\",\"StartLinkID\":\"string\",\"EndLinkID\":\"string\",\"SrcUpdateTime\":\"0001-01-01T00:00:00+08:06\",\"UpdateTime\":\"0001-01-01T00:00:00+08:06\",\"InfoTime\":\"0001-01-01T00:00:00+08:06\",\"InfoDate\":\"string\"}"
},
"text/csv": {
"schema": {
"title": "Array",
"type": "array",
"items": {
"$ref": "#/components/schemas/PTXPlus.Service.DTO.Historical.Specification.Traffic.V2.CSV.SectionLink"
},
"xml": {
"name": "List`1"
}
},
"example": "SectionID,AuthorityCode,SubAuthorityCode,StartLinkID,EndLinkID,LinkIDsLinkIDs,SrcUpdateTime,UpdateTime,InfoTime,InfoDate\n\"string\",\"string\",\"string\",\"string\",\"string\",\"string\",0001-01-01T00:00:00+08:06,0001-01-01T00:00:00+08:06,0001-01-01T00:00:00+08:06,\"string\"\n\"string\",\"string\",\"string\",\"string\",\"string\",\"string\",0001-01-01T00:00:00+08:06,0001-01-01T00:00:00+08:06,0001-01-01T00:00:00+08:06,\"string\"\n"
}
}
},
"249": {
"description": "加入參數'?Meta=true'即可查詢此API服務的統計資訊",
"content": {
"text/ndjson": {
"schema": {
"$ref": "#/components/schemas/PTXPlus.Service.DTO.Shared.Specification.Base.MetaFilter.Meta"
}
},
"text/csv": {
"schema": {
"$ref": "#/components/schemas/PTXPlus.Service.DTO.Shared.Specification.Base.MetaFilter.Meta"
}
}
}
}
}
}
},
"/v2/Historical/Road/Traffic/SectionShape/Highway": {
"get": {
"tags": [
"Traffic-Highway"
],
"summary": "取得指定[日期]的[公路局]發佈路段線型圖資歷史資料",
"description": "取得指定[日期]的[公路局]發佈路段線型圖資歷史資料",
"operationId": "SectionShape_Highway",
"parameters": [
{
"name": "Dates",
"in": "query",
"description": "本歷史資料提供範圍為2021年7月至昨天(每天早上8點更新),欲查詢之日期 / 區間(日期格式為: 'yyyy-MM-dd',查詢多筆使用逗號','分隔,查詢區間使用波浪號'~'分隔,查詢天數最多7日,例如: '2021-07-01,2021-07-03~2021-07-05')",
"required": true,
"schema": {
"title": "DateList",
"type": "string",
"xml": {
"name": "DateList"
}
}
},
{
"name": "$top",
"in": "query",
"description": "取前幾筆",
"schema": {
"type": "integer",
"default": 30
}
},
{
"name": "$format",
"in": "query",
"description": "指定來源格式",
"required": true,
"schema": {
"enum": [
"JSONL",
"CSV"
],
"type": "string"
}
},
{
"name": "Meta",
"in": "query",
"description": "加入參數'?Meta=true'即可查詢此API服務的統計資訊",
"schema": {
"enum": [
"true"
],
"type": "string",
"default": ""
}
}
],
"responses": {
"200": {
"description": "OK",
"content": {
"text/ndjson": {
"schema": {
"title": "Array",
"type": "array",
"items": {
"$ref": "#/components/schemas/PTXPlus.Service.DTO.Historical.Specification.Traffic.V2.JSON.SectionShape"
},
"xml": {
"name": "List`1"
}
},
"example": "{\"SectionID\":\"string\",\"AuthorityCode\":\"string\",\"SubAuthorityCode\":\"string\",\"Geometry\":\"string\",\"SrcUpdateTime\":\"0001-01-01T00:00:00+08:06\",\"UpdateTime\":\"0001-01-01T00:00:00+08:06\",\"InfoTime\":\"0001-01-01T00:00:00+08:06\",\"InfoDate\":\"string\"}\n{\"SectionID\":\"string\",\"AuthorityCode\":\"string\",\"SubAuthorityCode\":\"string\",\"Geometry\":\"string\",\"SrcUpdateTime\":\"0001-01-01T00:00:00+08:06\",\"UpdateTime\":\"0001-01-01T00:00:00+08:06\",\"InfoTime\":\"0001-01-01T00:00:00+08:06\",\"InfoDate\":\"string\"}"
},
"text/csv": {
"schema": {
"title": "Array",
"type": "array",
"items": {
"$ref": "#/components/schemas/PTXPlus.Service.DTO.Historical.Specification.Traffic.V2.JSON.SectionShape"
},
"xml": {
"name": "List`1"
}
},
"example": "SectionID,AuthorityCode,SubAuthorityCode,Geometry,SrcUpdateTime,UpdateTime,InfoTime,InfoDate\n\"string\",\"string\",\"string\",\"string\",0001-01-01T00:00:00+08:06,0001-01-01T00:00:00+08:06,0001-01-01T00:00:00+08:06,\"string\"\n\"string\",\"string\",\"string\",\"string\",0001-01-01T00:00:00+08:06,0001-01-01T00:00:00+08:06,0001-01-01T00:00:00+08:06,\"string\"\n"
}
}
},
"249": {
"description": "加入參數'?Meta=true'即可查詢此API服務的統計資訊",
"content": {
"text/ndjson": {
"schema": {
"$ref": "#/components/schemas/PTXPlus.Service.DTO.Shared.Specification.Base.MetaFilter.Meta"
}
},
"text/csv": {
"schema": {
"$ref": "#/components/schemas/PTXPlus.Service.DTO.Shared.Specification.Base.MetaFilter.Meta"
}
}
}
}
}
}
},
"/v2/Historical/Road/Traffic/CongestionLevel/Highway": {
"get": {
"tags": [
"Traffic-Highway"
],
"summary": "取得指定[日期]的[公路局]路況壅塞水準歷史資料",
"description": "取得指定[日期]的[公路局]路況壅塞水準歷史資料",
"operationId": "CongestionLevel_Highway",
"parameters": [
{
"name": "Dates",
"in": "query",
"description": "本歷史資料提供範圍為2021年7月至昨天(每天早上8點更新),欲查詢之日期 / 區間(日期格式為: 'yyyy-MM-dd',查詢多筆使用逗號','分隔,查詢區間使用波浪號'~'分隔,查詢天數最多7日,例如: '2021-07-01,2021-07-03~2021-07-05')",
"required": true,
"schema": {
"title": "DateList",
"type": "string",
"xml": {
"name": "DateList"
}
}
},
{
"name": "$top",
"in": "query",
"description": "取前幾筆",
"schema": {
"type": "integer",
"default": 30
}
},
{
"name": "$format",
"in": "query",
"description": "指定來源格式",
"required": true,
"schema": {
"enum": [
"JSONL",
"CSV"
],
"type": "string"
}
},
{
"name": "Meta",
"in": "query",
"description": "加入參數'?Meta=true'即可查詢此API服務的統計資訊",
"schema": {
"enum": [
"true"
],
"type": "string",
"default": ""
}
}
],
"responses": {
"200": {
"description": "OK",
"content": {
"text/ndjson": {
"schema": {
"title": "Array",
"type": "array",
"items": {
"$ref": "#/components/schemas/PTXPlus.Service.DTO.Historical.Specification.Traffic.V2.JSON.CongestionLevel"
},
"xml": {
"name": "List`1"
}
},
"example": "{\"CongestionLevelID\":\"string\",\"AuthorityCode\":\"string\",\"SubAuthorityCode\":\"string\",\"CongestionLevelName\":\"string\",\"Description\":\"string\",\"MeasureIndex\":\"Speed\",\"SrcUpdateTime\":\"0001-01-01T00:00:00+08:06\",\"UpdateTime\":\"0001-01-01T00:00:00+08:06\",\"InfoTime\":\"0001-01-01T00:00:00+08:06\",\"InfoDate\":\"string\"}\n{\"CongestionLevelID\":\"string\",\"AuthorityCode\":\"string\",\"SubAuthorityCode\":\"string\",\"CongestionLevelName\":\"string\",\"Description\":\"string\",\"MeasureIndex\":\"Speed\",\"SrcUpdateTime\":\"0001-01-01T00:00:00+08:06\",\"UpdateTime\":\"0001-01-01T00:00:00+08:06\",\"InfoTime\":\"0001-01-01T00:00:00+08:06\",\"InfoDate\":\"string\"}"
},
"text/csv": {
"schema": {
"title": "Array",
"type": "array",
"items": {
"$ref": "#/components/schemas/PTXPlus.Service.DTO.Historical.Specification.Traffic.V2.CSV.CongestionLevel"
},
"xml": {
"name": "List`1"
}
},
"example": "CongestionLevelID,AuthorityCode,SubAuthorityCode,CongestionLevelName,Description,MeasureIndex,LevelsLevel,LevelsLevelName,LevelsTopValue,LevelsLowValue,SrcUpdateTime,UpdateTime,InfoTime,InfoDate\n\"string\",\"string\",\"string\",\"string\",\"string\",Speed,UNKNOWN,\"string\",,,0001-01-01T00:00:00+08:06,0001-01-01T00:00:00+08:06,0001-01-01T00:00:00+08:06,\"string\"\n\"string\",\"string\",\"string\",\"string\",\"string\",Speed,UNKNOWN,\"string\",,,0001-01-01T00:00:00+08:06,0001-01-01T00:00:00+08:06,0001-01-01T00:00:00+08:06,\"string\"\n"
}
}
},
"249": {
"description": "加入參數'?Meta=true'即可查詢此API服務的統計資訊",
"content": {
"text/ndjson": {
"schema": {
"$ref": "#/components/schemas/PTXPlus.Service.DTO.Shared.Specification.Base.MetaFilter.Meta"
}
},
"text/csv": {
"schema": {
"$ref": "#/components/schemas/PTXPlus.Service.DTO.Shared.Specification.Base.MetaFilter.Meta"
}
}
}
}
}
}
},
"/v2/Historical/Road/Traffic/Live/Highway": {
"get": {
"tags": [
"Traffic-Highway"
],
"summary": "取得指定[日期]的[公路局]發布路段即時路況歷史資料",
"description": "取得指定[日期]的[公路局]發布路段即時路況歷史資料",
"operationId": "LiveTraffic_Highway",
"parameters": [
{
"name": "Dates",
"in": "query",
"description": "本歷史資料提供範圍為2021年7月至昨天(每天早上8點更新),欲查詢之日期 / 區間(日期格式為: 'yyyy-MM-dd',查詢多筆使用逗號','分隔,查詢區間使用波浪號'~'分隔,查詢天數最多7日,例如: '2021-07-01,2021-07-03~2021-07-05')",
"required": true,
"schema": {
"title": "DateList",
"type": "string",
"xml": {
"name": "DateList"
}
}
},
{
"name": "$top",
"in": "query",
"description": "取前幾筆",
"schema": {
"type": "integer",
"default": 30
}
},
{
"name": "$format",
"in": "query",
"description": "指定來源格式",
"required": true,
"schema": {
"enum": [
"JSONL",
"CSV"
],
"type": "string"
}
},
{
"name": "Meta",
"in": "query",
"description": "加入參數'?Meta=true'即可查詢此API服務的統計資訊",
"schema": {
"enum": [
"true"
],
"type": "string",
"default": ""
}
}
],
"responses": {
"200": {
"description": "OK",
"content": {
"text/ndjson": {
"schema": {
"title": "Array",
"type": "array",
"items": {
"$ref": "#/components/schemas/PTXPlus.Service.DTO.Historical.Specification.Traffic.V2.JSON.LiveTraffic"
},
"xml": {
"name": "List`1"
}
},
"example": "{\"SectionID\":\"string\",\"AuthorityCode\":\"string\",\"SubAuthorityCode\":\"string\",\"TravelTime\":0,\"TravelSpeed\":0,\"CongestionLevelID\":\"string\",\"CongestionLevel\":\"string\",\"DataCollectTime\":\"0001-01-01T00:00:00+08:06\",\"SrcUpdateTime\":\"0001-01-01T00:00:00+08:06\",\"UpdateTime\":\"0001-01-01T00:00:00+08:06\",\"InfoTime\":\"0001-01-01T00:00:00+08:06\",\"InfoDate\":\"string\"}\n{\"SectionID\":\"string\",\"AuthorityCode\":\"string\",\"SubAuthorityCode\":\"string\",\"TravelTime\":0,\"TravelSpeed\":0,\"CongestionLevelID\":\"string\",\"CongestionLevel\":\"string\",\"DataCollectTime\":\"0001-01-01T00:00:00+08:06\",\"SrcUpdateTime\":\"0001-01-01T00:00:00+08:06\",\"UpdateTime\":\"0001-01-01T00:00:00+08:06\",\"InfoTime\":\"0001-01-01T00:00:00+08:06\",\"InfoDate\":\"string\"}"
},
"text/csv": {
"schema": {
"title": "Array",
"type": "array",
"items": {
"$ref": "#/components/schemas/PTXPlus.Service.DTO.Historical.Specification.Traffic.V2.CSV.LiveTraffic"
},
"xml": {
"name": "List`1"
}
},
"example": "SectionID,AuthorityCode,SubAuthorityCode,LinkIDsLinkIDs,TravelTime,TravelSpeed,CongestionLevelID,CongestionLevel,DataSourcesHasHistorical,DataSourcesHasVD,DataSourcesHasAVI,DataSourcesHasETAG,DataSourcesHasGVP,DataSourcesHasCVP,DataSourcesHasOthers,DataCollectTime,SrcUpdateTime,UpdateTime,InfoTime,InfoDate\n\"string\",\"string\",\"string\",\"string\",0,0,\"string\",\"string\",不包含,不包含,不包含,不包含,不包含,不包含,不包含,0001-01-01T00:00:00+08:06,0001-01-01T00:00:00+08:06,0001-01-01T00:00:00+08:06,0001-01-01T00:00:00+08:06,\"string\"\n\"string\",\"string\",\"string\",\"string\",0,0,\"string\",\"string\",不包含,不包含,不包含,不包含,不包含,不包含,不包含,0001-01-01T00:00:00+08:06,0001-01-01T00:00:00+08:06,0001-01-01T00:00:00+08:06,0001-01-01T00:00:00+08:06,\"string\"\n"
}
}
},
"249": {
"description": "加入參數'?Meta=true'即可查詢此API服務的統計資訊",
"content": {
"text/ndjson": {
"schema": {
"$ref": "#/components/schemas/PTXPlus.Service.DTO.Shared.Specification.Base.MetaFilter.Meta"
}
},
"text/csv": {
"schema": {
"$ref": "#/components/schemas/PTXPlus.Service.DTO.Shared.Specification.Base.MetaFilter.Meta"
}
}
}
}
}
}
}
},
"components": {
"schemas": {
"PTXPlus.Service.DTO.Historical.Specification.Traffic.V2.JSON.VD": {
"title": "VD",
"required": [
"AuthorityCode",
"BiDirectional",
"CountyID",
"CountyName",
"DetectionLinks",
"DetectionType",
"Geohash",
"InfoDate",
"InfoTime",
"PositionLat",
"PositionLon",
"SrcUpdateTime",
"TownID",
"TownName",
"UpdateTime",
"VDID",
"VDType"
],
"type": "object",
"properties": {
"VDID": {
"title": "String",
"minLength": 1,
"type": "string",
"description": "VD設備代碼",
"xml": {
"name": "VDID"
}
},
"AuthorityCode": {
"title": "String",
"minLength": 1,
"type": "string",
"description": "業管機關簡碼",
"xml": {
"name": "AuthorityCode"
}
},
"SubAuthorityCode": {
"title": "String",
"type": "string",
"description": "業管子機關簡碼",
"nullable": true,
"xml": {
"name": "SubAuthorityCode"
}
},
"BiDirectional": {
"title": "Int32",
"type": "integer",
"description": "是否為雙向偵測 : [0:'偵測單向',1:'偵測雙向']",
"format": "int32"
},
"DetectionLinks": {
"title": "DetectionLink[]",
"type": "array",
"items": {
"$ref": "#/components/schemas/PTXPlus.Service.DTO.Historical.Specification.Traffic.V2.JSON.DetectionLink"
},
"description": "路段車流偵測資訊",
"xml": {
"name": "DetectionLink[]"
}
},
"VDType": {
"title": "Int32",
"type": "integer",
"description": "VD 類別 : [1:'線圈式',2:'微波式',3:'影像式',4:'紅外線',5:'超音波',6:'其它']",
"format": "int32"
},
"LocationType": {
"title": "Int32",
"type": "integer",
"description": "設置地點位置類型 : [1:'路側',2:'道路中央分隔島',3:'快慢分隔島',4:'車道上門架',5:'車道鋪面',6:'其他']",
"format": "int32",
"nullable": true
},
"DetectionType": {
"title": "Int32",
"type": "integer",
"description": "車流偵側類型 : [1:'高快速公路/市快主線',2:'高快速公路/市快匝道',3:'其它道路路段中',4:'其它道路路口(靠近路口或停止線)']",
"format": "int32"
},
"PositionLon": {
"title": "Double",
"type": "number",
"description": "設備架設位置 X 坐標",
"format": "double"
},
"PositionLat": {
"title": "Double",
"type": "number",
"description": "設備架設位置 Y 坐標",
"format": "double"
},
"Geohash": {
"title": "String",
"minLength": 1,
"type": "string",
"description": "地理識別碼",
"xml": {
"name": "Geohash"
}
},
"CountyID": {
"title": "String",
"minLength": 1,
"type": "string",
"description": "縣市代碼",
"xml": {
"name": "CountyID"
}
},
"CountyName": {
"title": "String",
"minLength": 1,
"type": "string",
"description": "縣市名稱",
"xml": {
"name": "CountyName"
}
},
"TownID": {
"title": "String",
"minLength": 1,
"type": "string",
"description": "市區鄉鎮代碼",
"xml": {
"name": "TownID"
}
},
"TownName": {
"title": "String",
"minLength": 1,
"type": "string",
"description": "市區鄉鎮名稱",
"xml": {
"name": "TownName"
}
},
"RoadID": {
"title": "String",
"type": "string",
"description": "道路代碼, 請參閱[**[路名碼基本資料](https://traffic-api-documentation.gitbook.io/traffic/xiang-dai-zhao-biao)**]",
"nullable": true,
"xml": {
"name": "RoadID"
}
},
"RoadName": {
"title": "String",
"type": "string",
"description": "道路名稱",
"nullable": true,
"xml": {
"name": "RoadName"
}
},
"RoadClass": {
"title": "Int32",
"type": "integer",
"description": "道路分類 : [0:'國道',1:'快速道路',2:'市區快速道路',3:'省道',4:'縣道',5:'鄉道',6:'市區一般道路',7:'匝道']",
"format": "int32",
"nullable": true
},
"RoadSection": {
"title": "RoadSection",
"allOf": [
{
"$ref": "#/components/schemas/PTXPlus.Service.DTO.Historical.Specification.Traffic.V2.Commons.RoadSection"
}
],
"description": "所在道路路段描述",
"nullable": true,
"xml": {
"name": "RoadSection"
}
},
"LocationMile": {
"title": "String",
"type": "string",
"description": "所在方向里程數",
"nullable": true,
"xml": {
"name": "LocationMile"
}
},
"SrcUpdateTime": {
"title": "DateTime",
"type": "string",
"description": "本平台資料更新時間(ISO8601格式:yyyy-MM-ddTHH:mm:sszzz)\n",
"format": "date-time"
},
"UpdateTime": {
"title": "DateTime",
"type": "string",
"description": "來源端平台資料更新時間(ISO8601格式:yyyy-MM-ddTHH:mm:sszzz)\n",
"format": "date-time"
},
"InfoTime": {
"title": "DateTime",
"type": "string",
"description": "資料代表時間(ISO8601格式:yyyy-MM-ddTHH:mm:sszzz)",
"format": "date-time"
},
"InfoDate": {
"title": "String",
"minLength": 1,
"type": "string",
"description": "資料代表日期(格式:yyyy-MM-dd)",
"xml": {
"name": "InfoDate"
}
}
},
"additionalProperties": false,
"xml": {
"name": "VD"
}
},
"PTXPlus.Service.DTO.Historical.Specification.Traffic.V2.JSON.VD0": {
"$ref": "#/components/schemas/PTXPlus.Service.DTO.Historical.Specification.Traffic.V2.JSON.VD"
},
"PTXPlus.Service.DTO.Historical.Specification.Traffic.V2.JSON.DetectionLink": {
"title": "DetectionLink",
"required": [
"ActualLaneNum",
"LaneNum",
"LinkID",
"RoadDirection"
],
"type": "object",
"properties": {
"LinkID": {
"title": "String",
"minLength": 1,
"type": "string",
"description": "基礎路段代碼, 請參閱[**[基礎路段代碼表](https://motclink.gitbook.io/link/lu-duan-bian-ma-nei-rong/2code)**]",
"xml": {
"name": "LinkID"
}
},
"Bearing": {
"title": "String",
"type": "string",
"description": "基礎路段方位 : [E:'東',N:'北',NE:'東北',NW:'西北',S:'南',SE:'東南',SW:'西南',W:'西']",
"nullable": true
},
"RoadDirection": {
"title": "String",
"minLength": 1,
"type": "string",
"description": "基礎路段所屬道路方向, 請參閱[**[道路方向資料表](https://traffic-api-documentation.gitbook.io/traffic/xiang-dai-zhao-biao)**]",
"xml": {
"name": "RoadDirection"
}
},
"LaneNum": {
"title": "Int32",
"type": "integer",
"description": "設備於該方向基礎路段所能偵側車道數",
"format": "int32"
},
"ActualLaneNum": {
"title": "Int32",
"type": "integer",
"description": "該方向基礎路段的實際車道數",
"format": "int32"
}
},
"additionalProperties": false,
"xml": {
"name": "DetectionLink"
}
},
"PTXPlus.Service.DTO.Historical.Specification.Traffic.V2.Commons.RoadSection": {
"title": "RoadSection",
"type": "object",
"properties": {
"Start": {
"title": "String",
"type": "string",
"description": "路段起點描述",
"nullable": true,
"xml": {
"name": "Start"
}
},
"End": {
"title": "String",
"type": "string",
"description": "路段迄點描述",
"nullable": true,
"xml": {
"name": "End"
}
}
},
"additionalProperties": false,
"xml": {
"name": "RoadSection"
}
},
"PTXPlus.Service.DTO.Historical.Specification.Traffic.V2.CSV.VD": {
"title": "VD",
"required": [
"AuthorityCode",
"BiDirectional",
"CountyID",
"CountyName",
"DetectionLinksActualLaneNum",
"DetectionLinksLaneNum",
"DetectionLinksLinkID",
"DetectionLinksRoadDirection",
"DetectionType",
"Geohash",
"InfoDate",
"InfoTime",
"PositionLat",
"PositionLon",
"SrcUpdateTime",
"TownID",
"TownName",
"UpdateTime",
"VDID",
"VDType"
],
"type": "object",
"properties": {
"VDID": {
"title": "String",
"minLength": 1,
"type": "string",
"description": "VD設備代碼",
"xml": {
"name": "VDID"
}
},
"AuthorityCode": {
"title": "String",
"minLength": 1,
"type": "string",
"description": "業管機關簡碼",
"xml": {
"name": "AuthorityCode"
}
},
"SubAuthorityCode": {
"title": "String",
"type": "string",
"description": "業管子機關簡碼",
"nullable": true,
"xml": {
"name": "SubAuthorityCode"
}
},
"BiDirectional": {
"title": "Int32",
"type": "integer",
"description": "是否為雙向偵測 : [0:'偵測單向',1:'偵測雙向']",
"format": "int32"
},
"DetectionLinksLinkID": {
"title": "String",
"minLength": 1,
"type": "string",
"description": "基礎路段代碼, 請參閱[**[基礎路段代碼表](https://motclink.gitbook.io/link/lu-duan-bian-ma-nei-rong/2code)**]",
"xml": {
"name": "DetectionLinksLinkID"
}
},
"DetectionLinksBearing": {
"title": "String",
"type": "string",
"description": "基礎路段方位 : [E:'東',N:'北',NE:'東北',NW:'西北',S:'南',SE:'東南',SW:'西南',W:'西']",
"nullable": true
},
"DetectionLinksRoadDirection": {
"title": "String",
"minLength": 1,
"type": "string",
"description": "基礎路段所屬道路方向, 請參閱[**[道路方向資料表](https://traffic-api-documentation.gitbook.io/traffic/xiang-dai-zhao-biao)**]",
"xml": {
"name": "DetectionLinksRoadDirection"
}
},
"DetectionLinksLaneNum": {
"title": "Int32",
"type": "integer",
"description": "設備於該方向基礎路段所能偵側車道數",
"format": "int32"
},
"DetectionLinksActualLaneNum": {
"title": "Int32",
"type": "integer",
"description": "該方向基礎路段的實際車道數",
"format": "int32"
},
"VDType": {
"title": "Int32",
"type": "integer",
"description": "VD 類別 : [1:'線圈式',2:'微波式',3:'影像式',4:'紅外線',5:'超音波',6:'其它']",
"format": "int32"
},
"LocationType": {
"title": "Int32",
"type": "integer",
"description": "設置地點位置類型 : [1:'路側',2:'道路中央分隔島',3:'快慢分隔島',4:'車道上門架',5:'車道鋪面',6:'其他']",
"format": "int32",
"nullable": true
},
"DetectionType": {
"title": "Int32",
"type": "integer",
"description": "車流偵側類型 : [1:'高快速公路/市快主線',2:'高快速公路/市快匝道',3:'其它道路路段中',4:'其它道路路口(靠近路口或停止線)']",
"format": "int32"
},
"PositionLon": {
"title": "Double",
"type": "number",
"description": "設備架設位置 X 坐標",
"format": "double"
},
"PositionLat": {
"title": "Double",
"type": "number",
"description": "設備架設位置 Y 坐標",
"format": "double"
},
"Geohash": {
"title": "String",
"minLength": 1,
"type": "string",
"description": "地理識別碼",
"xml": {
"name": "Geohash"
}
},
"CountyID": {
"title": "String",
"minLength": 1,
"type": "string",
"description": "縣市代碼",
"xml": {
"name": "CountyID"
}
},
"CountyName": {
"title": "String",
"minLength": 1,
"type": "string",
"description": "縣市名稱",
"xml": {
"name": "CountyName"
}
},
"TownID": {
"title": "String",
"minLength": 1,
"type": "string",
"description": "市區鄉鎮代碼",
"xml": {
"name": "TownID"
}
},
"TownName": {
"title": "String",
"minLength": 1,
"type": "string",
"description": "市區鄉鎮名稱",
"xml": {
"name": "TownName"
}
},
"RoadID": {
"title": "String",
"type": "string",
"description": "道路代碼, 請參閱[**[路名碼基本資料](https://traffic-api-documentation.gitbook.io/traffic/xiang-dai-zhao-biao)**]",
"nullable": true,
"xml": {
"name": "RoadID"
}
},
"RoadName": {
"title": "String",
"type": "string",
"description": "道路名稱",
"nullable": true,
"xml": {
"name": "RoadName"
}
},
"RoadClass": {
"title": "Int32",
"type": "integer",
"description": "道路分類 : [0:'國道',1:'快速道路',2:'市區快速道路',3:'省道',4:'縣道',5:'鄉道',6:'市區一般道路',7:'匝道']",
"format": "int32",
"nullable": true
},
"RoadSectionStart": {
"title": "String",
"type": "string",
"description": "路段起點描述",
"nullable": true,
"xml": {
"name": "RoadSectionStart"
}
},
"RoadSectionEnd": {
"title": "String",
"type": "string",
"description": "路段迄點描述",
"nullable": true,
"xml": {
"name": "RoadSectionEnd"
}
},
"LocationMile": {
"title": "String",
"type": "string",
"description": "所在方向里程數",
"nullable": true,
"xml": {
"name": "LocationMile"
}
},
"SrcUpdateTime": {
"title": "DateTime",
"type": "string",
"description": "本平台資料更新時間(ISO8601格式:yyyy-MM-ddTHH:mm:sszzz)\n",
"format": "date-time"
},
"UpdateTime": {
"title": "DateTime",
"type": "string",
"description": "來源端平台資料更新時間(ISO8601格式:yyyy-MM-ddTHH:mm:sszzz)\n",
"format": "date-time"
},
"InfoTime": {
"title": "DateTime",
"type": "string",
"description": "資料代表時間(ISO8601格式:yyyy-MM-ddTHH:mm:sszzz)",
"format": "date-time"
},
"InfoDate": {
"title": "String",
"minLength": 1,
"type": "string",
"description": "資料代表日期(格式:yyyy-MM-dd)",
"xml": {
"name": "InfoDate"
}
}
},
"additionalProperties": false,
"xml": {
"name": "VD"
}
},
"PTXPlus.Service.DTO.Historical.Specification.Traffic.V2.CSV.VD1": {
"$ref": "#/components/schemas/PTXPlus.Service.DTO.Historical.Specification.Traffic.V2.CSV.VD"
},
"PTXPlus.Service.DTO.Shared.Specification.Base.MetaFilter.Meta": {
"title": "Meta",
"required": [
"Count",
"Dates",
"SizeBytes"
],
"type": "object",
"properties": {
"Dates": {
"title": "String",
"minLength": 1,
"type": "string",
"xml": {
"name": "Dates"
}
},
"Count": {
"title": "Int64",
"type": "integer",
"format": "int64"
},
"SizeBytes": {
"title": "Int64",
"type": "integer",
"format": "int64"
}
},
"additionalProperties": false,
"xml": {
"name": "Meta"
}
},
"PTXPlus.Service.DTO.Historical.Specification.Traffic.V2.JSON.VDLive": {
"title": "VDLive",
"required": [
"AuthorityCode",
"DataCollectTime",
"HostAuthorityCode",
"InfoDate",
"InfoTime",
"LinkFlows",
"SrcUpdateTime",
"Status",
"UpdateTime",
"VDID"
],
"type": "object",
"properties": {
"VDID": {
"title": "String",
"minLength": 1,
"type": "string",
"description": "VD設備代碼",
"xml": {
"name": "VDID"
}
},
"HostAuthorityCode": {
"title": "String",
"minLength": 1,
"type": "string",
"description": "實際所屬業管機關簡碼",
"xml": {
"name": "HostAuthorityCode"
}
},
"AuthorityCode": {
"title": "String",
"minLength": 1,
"type": "string",
"description": "業管機關簡碼",
"xml": {
"name": "AuthorityCode"
}
},
"SubAuthorityCode": {
"title": "String",
"type": "string",
"description": "業管子機關簡碼\n",
"nullable": true,
"xml": {
"name": "SubAuthorityCode"
}
},
"LinkFlows": {
"title": "LinkFlow[]",
"type": "array",
"items": {
"$ref": "#/components/schemas/PTXPlus.Service.DTO.Historical.Specification.Traffic.V2.Commons.LinkFlow"
},
"description": "路段車流偵測資訊",
"xml": {
"name": "LinkFlow[]"
}
},
"Status": {
"title": "Int32",
"type": "integer",
"description": "設備狀態 : [0:'正常',1:'通訊異常',2:'停用或施工中',3:'設備故障']",
"format": "int32"
},
"DataCollectTime": {
"title": "DateTime",
"type": "string",
"description": "資料蒐集時間(ISO8601格式:yyyy-MM-ddTHH:mm:sszzz)",
"format": "date-time"
},
"SrcUpdateTime": {
"title": "DateTime",
"type": "string",
"description": "本平台資料更新時間(ISO8601格式:yyyy-MM-ddTHH:mm:sszzz)\n",
"format": "date-time"
},
"UpdateTime": {
"title": "DateTime",
"type": "string",
"description": "來源端平台資料更新時間(ISO8601格式:yyyy-MM-ddTHH:mm:sszzz)\n",
"format": "date-time"
},
"InfoTime": {
"title": "DateTime",
"type": "string",
"description": "資料代表時間(ISO8601格式:yyyy-MM-ddTHH:mm:sszzz)",
"format": "date-time"
},
"InfoDate": {
"title": "String",
"minLength": 1,
"type": "string",
"description": "資料代表日期(格式:yyyy-MM-dd)",
"xml": {
"name": "InfoDate"
}
}
},
"additionalProperties": false,
"xml": {
"name": "VDLive"
}
},
"PTXPlus.Service.DTO.Historical.Specification.Traffic.V2.JSON.VDLive2": {
"$ref": "#/components/schemas/PTXPlus.Service.DTO.Historical.Specification.Traffic.V2.JSON.VDLive"
},
"PTXPlus.Service.DTO.Historical.Specification.Traffic.V2.Commons.LinkFlow": {
"title": "LinkFlow",
"required": [
"Lanes",
"LinkID"
],
"type": "object",
"properties": {
"LinkID": {
"title": "String",
"minLength": 1,
"type": "string",
"description": "基礎路段代碼, 請參閱[**[基礎路段代碼表](https://motclink.gitbook.io/link/lu-duan-bian-ma-nei-rong/2code)**]",
"xml": {
"name": "LinkID"
}
},
"Lanes": {
"title": "Lane[]",
"type": "array",
"items": {
"$ref": "#/components/schemas/PTXPlus.Service.DTO.Historical.Specification.Traffic.V2.Commons.Lane"
},
"description": "偵側路段車道資訊",
"xml": {
"name": "Lane[]"
}
}
},
"additionalProperties": false,
"xml": {
"name": "LinkFlow"
}
},
"PTXPlus.Service.DTO.Historical.Specification.Traffic.V2.Commons.Lane": {
"title": "Lane",
"required": [
"ErrorDiags",
"LaneID",
"LaneType",
"Occupancy",
"RecurrentTimes",
"RecurrentZeroTimes",
"Speed",
"Vehicles"
],
"type": "object",
"properties": {
"LaneID": {
"title": "Int32",
"type": "integer",
"description": "車道代碼",
"format": "int32"
},
"LaneType": {
"title": "Int32",
"type": "integer",
"description": "車道種類 : [1:'一般車道',2:'快車道',3:'慢車道',4:'機車道',5:'高承載車道',6:'公車專用道',7:'轉向車道',8:'路肩',9:'輔助車道',10:'調撥車道',11:'其他']",
"format": "int32"
},
"Speed": {
"title": "Double",
"type": "number",
"description": "平均速率偵測值, -99=資料異常",
"format": "double"
},
"Occupancy": {
"title": "Double",
"type": "number",
"description": "佔有率偵測值",
"format": "double"
},
"Vehicles": {
"title": "Vehicle[]",
"type": "array",
"items": {
"$ref": "#/components/schemas/PTXPlus.Service.DTO.Historical.Specification.Traffic.V2.Commons.Vehicle"
},
"description": "車道內車輛資訊",
"xml": {
"name": "Vehicle[]"
}
},
"ErrorDiags": {
"title": "String[]",
"type": "array",
"items": {
"title": "String",
"type": "string",
"xml": { }
},
"description": "車道內車流偵測資訊異常類型代碼, 請參閱[**[異常類型代碼](https://motc-traffic.gitbook.io/motc-traffic/ji-chu-jian-he-1/yi-chang-lei-xing-dai-ma)**]",
"xml": {
"name": "String[]"
}
},
"RecurrentTimes": {
"title": "Int32",
"type": "integer",
"description": "資料重複連續次數",
"format": "int32"
},
"RecurrentZeroTimes": {
"title": "Int32",
"type": "integer",
"description": "偵測值為0連續次數",
"format": "int32"
}
},
"additionalProperties": false,
"xml": {
"name": "Lane"
}
},
"PTXPlus.Service.DTO.Historical.Specification.Traffic.V2.Commons.Vehicle": {
"title": "Vehicle",
"required": [
"VehicleType",
"Volume"
],
"type": "object",
"properties": {
"VehicleType": {
"title": "String",
"minLength": 1,
"type": "string",
"description": "車種代碼, 請參閱[**[車種代碼](https://traffic-api-documentation.gitbook.io/traffic/xiang-dai-zhao-biao)**]",
"xml": {
"name": "VehicleType"
}
},
"Volume": {
"title": "Int32",
"type": "integer",
"description": "流量偵測值, -99=資料異常",
"format": "int32"
},
"Speed": {
"type": "number",
"description": "平均速率偵測值, -99=資料異常",
"format": "double",
"nullable": true
}
},
"additionalProperties": false,
"xml": {
"name": "Vehicle"
}
},
"PTXPlus.Service.DTO.Historical.Specification.Traffic.V2.CSV.VDLive": {
"title": "VDLive",
"required": [
"AuthorityCode",
"DataCollectTime",
"HostAuthorityCode",
"InfoDate",
"InfoTime",
"LinkFlowsLanesErrorDiags",
"LinkFlowsLanesLaneID",
"LinkFlowsLanesLaneType",
"LinkFlowsLanesOccupancy",
"LinkFlowsLanesRecurrentTimes",
"LinkFlowsLanesRecurrentZeroTimes",
"LinkFlowsLanesSpeed",
"LinkFlowsLanesVehiclesVehicleType",
"LinkFlowsLanesVehiclesVolume",
"LinkFlowsLinkID",
"SrcUpdateTime",
"Status",
"UpdateTime",
"VDID"
],
"type": "object",
"properties": {
"VDID": {
"title": "String",
"minLength": 1,
"type": "string",
"description": "VD設備代碼",
"xml": {
"name": "VDID"
}
},
"HostAuthorityCode": {
"title": "String",
"minLength": 1,
"type": "string",
"description": "實際所屬業管機關簡碼",
"xml": {
"name": "HostAuthorityCode"
}
},
"AuthorityCode": {
"title": "String",
"minLength": 1,
"type": "string",
"description": "業管機關簡碼",
"xml": {
"name": "AuthorityCode"
}
},
"SubAuthorityCode": {
"title": "String",
"type": "string",
"description": "業管子機關簡碼\n",
"nullable": true,
"xml": {
"name": "SubAuthorityCode"
}
},
"LinkFlowsLinkID": {
"title": "String",
"minLength": 1,
"type": "string",
"description": "基礎路段代碼",
"xml": {
"name": "LinkFlowsLinkID"
}
},
"LinkFlowsLanesLaneID": {
"title": "Int32",
"type": "integer",
"description": "車道代碼",
"format": "int32"
},
"LinkFlowsLanesLaneType": {
"title": "Int32",
"type": "integer",
"description": "車道種類 : [1:'一般車道',2:'快車道',3:'慢車道',4:'機車道',5:'高承載車道',6:'公車專用道',7:'轉向車道',8:'路肩',9:'輔助車道',10:'調撥車道',11:'其他']",
"format": "int32"
},
"LinkFlowsLanesSpeed": {
"title": "Double",
"type": "number",
"description": "平均速率偵測值",
"format": "double"
},
"LinkFlowsLanesOccupancy": {
"title": "Double",
"type": "number",
"description": "佔有率偵測值",
"format": "double"
},
"LinkFlowsLanesVehiclesVehicleType": {
"title": "String",
"minLength": 1,
"type": "string",
"description": "車種代碼",
"xml": {
"name": "LinkFlowsLanesVehiclesVehicleType"
}
},
"LinkFlowsLanesVehiclesVolume": {
"title": "Int32",
"type": "integer",
"description": "流量偵測值",
"format": "int32"
},
"LinkFlowsLanesVehiclesSpeed": {
"type": "number",
"description": "平均速率偵測值",
"format": "double",
"nullable": true
},
"LinkFlowsLanesErrorDiags": {
"title": "String",
"minLength": 1,
"type": "string",
"description": "車道內車流偵測資訊異常類型代碼, 請參閱[**[異常類型代碼](https://motc-traffic.gitbook.io/motc-traffic/ji-chu-jian-he-1/yi-chang-lei-xing-dai-ma)**]",
"xml": {
"name": "LinkFlowsLanesErrorDiags"
}
},
"LinkFlowsLanesRecurrentTimes": {
"title": "Int32",
"type": "integer",
"description": "資料重複連續次數",
"format": "int32"
},
"LinkFlowsLanesRecurrentZeroTimes": {
"title": "Int32",
"type": "integer",
"description": "偵測值為0連續次數",
"format": "int32"
},
"Status": {
"title": "Int32",
"type": "integer",
"description": "設備狀態 : [0:'正常',1:'通訊異常',2:'停用或施工中',3:'設備故障']",
"format": "int32"
},
"DataCollectTime": {
"title": "DateTime",
"type": "string",
"description": "資料蒐集時間(ISO8601格式:yyyy-MM-ddTHH:mm:sszzz)",
"format": "date-time"
},
"SrcUpdateTime": {
"title": "DateTime",
"type": "string",
"description": "本平台資料更新時間(ISO8601格式:yyyy-MM-ddTHH:mm:sszzz)\n",
"format": "date-time"
},
"UpdateTime": {
"title": "DateTime",
"type": "string",
"description": "來源端平台資料更新時間(ISO8601格式:yyyy-MM-ddTHH:mm:sszzz)\n",
"format": "date-time"
},
"InfoTime": {
"title": "DateTime",
"type": "string",
"description": "資料代表時間(ISO8601格式:yyyy-MM-ddTHH:mm:sszzz)",
"format": "date-time"
},
"InfoDate": {
"title": "String",
"minLength": 1,
"type": "string",
"description": "資料代表日期(格式:yyyy-MM-dd)",
"xml": {
"name": "InfoDate"
}
}
},
"additionalProperties": false,
"xml": {
"name": "VDLive"
}
},
"PTXPlus.Service.DTO.Historical.Specification.Traffic.V2.CSV.VDLive3": {
"$ref": "#/components/schemas/PTXPlus.Service.DTO.Historical.Specification.Traffic.V2.CSV.VDLive"
},
"PTXPlus.Service.DTO.Historical.Specification.Traffic.V2.JSON.CMS": {
"title": "CMS",
"required": [
"AuthorityCode",
"CMSID",
"CountyID",
"CountyName",
"Geohash",
"InfoDate",
"InfoTime",
"LinkID",
"LocationType",
"PositionLat",
"PositionLon",
"SrcUpdateTime",
"TownID",
"TownName",
"UpdateTime"
],
"type": "object",
"properties": {
"CMSID": {
"title": "String",
"minLength": 1,
"type": "string",
"description": "CMS設備代碼",
"xml": {
"name": "CMSID"
}
},
"AuthorityCode": {
"title": "String",
"minLength": 1,
"type": "string",
"description": "業管機關簡碼",
"xml": {
"name": "AuthorityCode"
}
},
"SubAuthorityCode": {
"title": "String",
"type": "string",
"description": "業管子機關簡碼",
"nullable": true,
"xml": {
"name": "SubAuthorityCode"
}
},
"LinkID": {
"title": "String",
"minLength": 1,
"type": "string",
"description": "基礎路段代碼, 請參閱[**[基礎路段代碼表](https://motclink.gitbook.io/link/lu-duan-bian-ma-nei-rong/2code)**]",
"xml": {
"name": "LinkID"
}
},
"LocationType": {
"title": "Int32",
"type": "integer",
"description": "設置地點位置類型 : [1:'路側',2:'道路中央分隔島',3:'快慢分隔島',4:'車道上門架',5:'車道鋪面',6:'其他']",
"format": "int32"
},
"PositionLon": {
"title": "Double",
"type": "number",
"description": "設備架設位置 X 坐標",
"format": "double"
},
"PositionLat": {
"title": "Double",
"type": "number",
"description": "設備架設位置 Y 坐標",
"format": "double"
},
"Geohash": {
"title": "String",
"minLength": 1,
"type": "string",
"description": "地理識別碼",
"xml": {
"name": "Geohash"
}
},
"CountyID": {
"title": "String",
"minLength": 1,
"type": "string",
"description": "縣市代碼",
"xml": {
"name": "CountyID"
}
},
"CountyName": {
"title": "String",
"minLength": 1,
"type": "string",
"description": "縣市名稱",
"xml": {
"name": "CountyName"
}
},
"TownID": {
"title": "String",
"minLength": 1,
"type": "string",
"description": "市區鄉鎮代碼",
"xml": {
"name": "TownID"
}
},
"TownName": {
"title": "String",
"minLength": 1,
"type": "string",
"description": "市區鄉鎮名稱",
"xml": {
"name": "TownName"
}
},
"RoadID": {
"title": "String",
"type": "string",
"description": "道路代碼, 請參閱[**[路名碼基本資料](https://traffic-api-documentation.gitbook.io/traffic/xiang-dai-zhao-biao)**]",
"nullable": true,
"xml": {
"name": "RoadID"
}
},
"RoadName": {
"title": "String",
"type": "string",
"description": "道路代碼",
"nullable": true,
"xml": {
"name": "RoadName"
}
},
"RoadClass": {
"title": "Int32",
"type": "integer",
"description": "道路分類 : [0:'國道',1:'快速道路',2:'市區快速道路',3:'省道',4:'縣道',5:'鄉道',6:'市區一般道路',7:'匝道']",
"format": "int32",
"nullable": true
},
"RoadDirection": {
"title": "String",
"type": "string",
"description": "基礎路段所屬道路方向, 請參閱[**[道路方向資料表](https://traffic-api-documentation.gitbook.io/traffic/xiang-dai-zhao-biao)**]",
"nullable": true,
"xml": {
"name": "RoadDirection"
}
},
"RoadSection": {
"title": "RoadSection",
"allOf": [
{
"$ref": "#/components/schemas/PTXPlus.Service.DTO.Historical.Specification.Traffic.V2.Commons.RoadSection"
}
],
"description": "所在道路路段描述",
"nullable": true,
"xml": {
"name": "RoadSection"
}
},
"LocationMile": {
"title": "String",
"type": "string",
"description": "所在方向里程數",
"nullable": true,
"xml": {
"name": "LocationMile"
}
},
"LayoutMapURL": {
"title": "String",
"type": "string",
"description": "路側設備布設簡圖URL",
"nullable": true,
"xml": {
"name": "LayoutMapURL"
}
},
"SrcUpdateTime": {
"title": "DateTime",
"type": "string",
"description": "本平台資料更新時間(ISO8601格式:yyyy-MM-ddTHH:mm:sszzz)\n",
"format": "date-time"
},
"UpdateTime": {
"title": "DateTime",
"type": "string",
"description": "來源端平台資料更新時間(ISO8601格式:yyyy-MM-ddTHH:mm:sszzz)\n",
"format": "date-time"
},
"InfoTime": {
"title": "DateTime",
"type": "string",
"description": "資料代表時間(ISO8601格式:yyyy-MM-ddTHH:mm:sszzz)",
"format": "date-time"
},
"InfoDate": {
"title": "String",
"minLength": 1,
"type": "string",
"description": "資料代表日期(格式:yyyy-MM-dd)",
"xml": {
"name": "InfoDate"
}
}
},
"additionalProperties": false,
"xml": {
"name": "CMS"
}
},
"PTXPlus.Service.DTO.Historical.Specification.Traffic.V2.JSON.CMS4": {
"$ref": "#/components/schemas/PTXPlus.Service.DTO.Historical.Specification.Traffic.V2.JSON.CMS"
},
"PTXPlus.Service.DTO.Historical.Specification.Traffic.V2.CSV.CMS": {
"title": "CMS",
"required": [
"AuthorityCode",
"CMSID",
"CountyID",
"CountyName",
"Geohash",
"InfoDate",
"InfoTime",
"LinkID",
"LocationType",
"PositionLat",
"PositionLon",
"SrcUpdateTime",
"TownID",
"TownName",
"UpdateTime"
],
"type": "object",
"properties": {
"CMSID": {
"title": "String",
"minLength": 1,
"type": "string",
"description": "CMS設備代碼",
"xml": {
"name": "CMSID"
}
},
"AuthorityCode": {
"title": "String",
"minLength": 1,
"type": "string",
"description": "業管機關簡碼",
"xml": {
"name": "AuthorityCode"
}
},
"SubAuthorityCode": {
"title": "String",
"type": "string",
"description": "業管子機關簡碼",
"nullable": true,
"xml": {
"name": "SubAuthorityCode"
}
},
"LinkID": {
"title": "String",
"minLength": 1,
"type": "string",
"description": "基礎路段代碼, 請參閱[**[基礎路段代碼表](https://motclink.gitbook.io/link/lu-duan-bian-ma-nei-rong/2code)**]",
"xml": {
"name": "LinkID"
}
},
"LocationType": {
"title": "Int32",
"type": "integer",
"description": "設置地點位置類型 : [1:'路側',2:'道路中央分隔島',3:'快慢分隔島',4:'車道上門架',5:'車道鋪面',6:'其他']",
"format": "int32"
},
"PositionLon": {
"title": "Double",
"type": "number",
"description": "設備架設位置 X 坐標",
"format": "double"
},
"PositionLat": {
"title": "Double",
"type": "number",
"description": "設備架設位置 Y 坐標",
"format": "double"
},
"Geohash": {
"title": "String",
"minLength": 1,
"type": "string",
"description": "地理識別碼",
"xml": {
"name": "Geohash"
}
},
"CountyID": {
"title": "String",
"minLength": 1,
"type": "string",
"description": "縣市代碼",
"xml": {
"name": "CountyID"
}
},
"CountyName": {
"title": "String",
"minLength": 1,
"type": "string",
"description": "縣市名稱",
"xml": {
"name": "CountyName"
}
},
"TownID": {
"title": "String",
"minLength": 1,
"type": "string",
"description": "市區鄉鎮代碼",
"xml": {
"name": "TownID"
}
},
"TownName": {
"title": "String",
"minLength": 1,
"type": "string",
"description": "市區鄉鎮名稱",
"xml": {
"name": "TownName"
}
},
"RoadID": {
"title": "String",
"type": "string",
"description": "道路代碼, 請參閱[**[路名碼基本資料](https://traffic-api-documentation.gitbook.io/traffic/xiang-dai-zhao-biao)**]",
"nullable": true,
"xml": {
"name": "RoadID"
}
},
"RoadName": {
"title": "String",
"type": "string",
"description": "道路代碼",
"nullable": true,
"xml": {
"name": "RoadName"
}
},
"RoadClass": {
"title": "Int32",
"type": "integer",
"description": "道路分類 : [0:'國道',1:'快速道路',2:'市區快速道路',3:'省道',4:'縣道',5:'鄉道',6:'市區一般道路',7:'匝道']",
"format": "int32",
"nullable": true
},
"RoadDirection": {
"title": "String",
"type": "string",
"description": "基礎路段所屬道路方向, 請參閱[**[道路方向資料表](https://traffic-api-documentation.gitbook.io/traffic/xiang-dai-zhao-biao)**]",
"nullable": true,
"xml": {
"name": "RoadDirection"
}
},
"RoadSectionStart": {
"title": "String",
"type": "string",
"description": "所在道路路段起點描述",
"nullable": true,
"xml": {
"name": "RoadSectionStart"
}
},
"RoadSectionEnd": {
"title": "String",
"type": "string",
"description": "所在道路路段迄點描述",
"nullable": true,
"xml": {
"name": "RoadSectionEnd"
}
},
"LocationMile": {
"title": "String",
"type": "string",
"description": "所在方向里程數",
"nullable": true,
"xml": {
"name": "LocationMile"
}
},
"LayoutMapURL": {
"title": "String",
"type": "string",
"description": "路側設備布設簡圖URL",
"nullable": true,
"xml": {
"name": "LayoutMapURL"
}
},
"SrcUpdateTime": {
"title": "DateTime",
"type": "string",
"description": "本平台資料更新時間(ISO8601格式:yyyy-MM-ddTHH:mm:sszzz)\n",
"format": "date-time"
},
"UpdateTime": {
"title": "DateTime",
"type": "string",
"description": "來源端平台資料更新時間(ISO8601格式:yyyy-MM-ddTHH:mm:sszzz)\n",
"format": "date-time"
},
"InfoTime": {
"title": "DateTime",
"type": "string",
"description": "資料代表時間(ISO8601格式:yyyy-MM-ddTHH:mm:sszzz)",
"format": "date-time"
},
"InfoDate": {
"title": "String",
"minLength": 1,
"type": "string",
"description": "資料代表日期(格式:yyyy-MM-dd)",
"xml": {
"name": "InfoDate"
}
}
},
"additionalProperties": false,
"xml": {
"name": "CMS"
}
},
"PTXPlus.Service.DTO.Historical.Specification.Traffic.V2.CSV.CMS5": {
"$ref": "#/components/schemas/PTXPlus.Service.DTO.Historical.Specification.Traffic.V2.CSV.CMS"
},
"PTXPlus.Service.DTO.Historical.Specification.Traffic.V2.JSON.CMSLive": {
"title": "CMSLive",
"required": [
"AuthorityCode",
"CMSID",
"DataCollectTime",
"InfoDate",
"InfoTime",
"Messages",
"MessageStatus",
"SrcUpdateTime",
"Status",
"UpdateTime"
],
"type": "object",
"properties": {
"CMSID": {
"title": "String",
"minLength": 1,
"type": "string",
"description": "CMS設備代碼",
"xml": {
"name": "CMSID"
}
},
"AuthorityCode": {
"title": "String",
"minLength": 1,
"type": "string",
"description": "業管機關簡碼",
"xml": {
"name": "AuthorityCode"
}
},
"SubAuthorityCode": {
"title": "String",
"type": "string",
"description": "業管子機關簡碼\n",
"nullable": true,
"xml": {
"name": "SubAuthorityCode"
}
},
"MessageStatus": {
"title": "Int32",
"type": "integer",
"description": "訊息發布狀態 : [0:'目前無資料顯示',1:'目前正執行循環顯示']",
"format": "int32"
},
"Messages": {
"title": "Message[]",
"type": "array",
"items": {
"$ref": "#/components/schemas/PTXPlus.Service.DTO.Historical.Specification.Traffic.V2.JSON.Message"
},
"description": "循環訊息內容",
"xml": {
"name": "Message[]"
}
},
"Status": {
"title": "Int32",
"type": "integer",
"description": "設備狀態 : [0:'正常',1:'通訊異常',2:'停用或施工中',3:'設備故障']",
"format": "int32"
},
"DataCollectTime": {
"title": "DateTime",
"type": "string",
"description": "資料蒐集時間(ISO8601格式:yyyy-MM-ddTHH:mm:sszzz)",
"format": "date-time"
},
"SrcUpdateTime": {
"title": "DateTime",
"type": "string",
"description": "本平台資料更新時間(ISO8601格式:yyyy-MM-ddTHH:mm:sszzz)\n",
"format": "date-time"
},
"UpdateTime": {
"title": "DateTime",
"type": "string",
"description": "來源端平台資料更新時間(ISO8601格式:yyyy-MM-ddTHH:mm:sszzz)\n",
"format": "date-time"
},
"InfoTime": {
"title": "DateTime",
"type": "string",
"description": "資料代表時間(ISO8601格式:yyyy-MM-ddTHH:mm:sszzz)",
"format": "date-time"
},
"InfoDate": {
"title": "String",
"minLength": 1,
"type": "string",
"description": "資料代表日期(格式:yyyy-MM-dd)",
"xml": {
"name": "InfoDate"
}
}
},
"additionalProperties": false,
"xml": {
"name": "CMSLive"
}
},
"PTXPlus.Service.DTO.Historical.Specification.Traffic.V2.JSON.CMSLive6": {
"$ref": "#/components/schemas/PTXPlus.Service.DTO.Historical.Specification.Traffic.V2.JSON.CMSLive"
},
"PTXPlus.Service.DTO.Historical.Specification.Traffic.V2.JSON.Message": {
"title": "Message",
"type": "object",
"properties": {
"Text": {
"title": "String",
"type": "string",
"description": "內容文字訊息",
"nullable": true,
"xml": {
"name": "Text"
}
},
"Image": {
"title": "String",
"type": "string",
"description": "內容圖片訊息",
"nullable": true,
"xml": {
"name": "Image"
}
},
"Type": {
"title": "Int32",
"type": "integer",
"description": "訊息種類 : [1:'旅行時間資訊',2:'壅塞資訊',3:'事故資訊',4:'施工資訊',5:'停車資訊',6:'政令宣導資訊',7:'其他未定義']",
"format": "int32",
"nullable": true
},
"Priority": {
"type": "integer",
"description": "顯示優先順序",
"format": "int32",
"nullable": true
}
},
"additionalProperties": false,
"xml": {
"name": "Message"
}
},
"PTXPlus.Service.DTO.Historical.Specification.Traffic.V2.CSV.CMSLive": {
"title": "CMSLive",
"required": [
"AuthorityCode",
"CMSID",
"DataCollectTime",
"InfoDate",
"InfoTime",
"MessageStatus",
"SrcUpdateTime",
"Status",
"UpdateTime"
],
"type": "object",
"properties": {
"CMSID": {
"title": "String",
"minLength": 1,
"type": "string",
"description": "CMS設備代碼",
"xml": {
"name": "CMSID"
}
},
"AuthorityCode": {
"title": "String",
"minLength": 1,
"type": "string",
"description": "業管機關簡碼",
"xml": {
"name": "AuthorityCode"
}
},
"SubAuthorityCode": {
"title": "String",
"type": "string",
"description": "業管子機關簡碼\n",
"nullable": true,
"xml": {
"name": "SubAuthorityCode"
}
},
"MessageStatus": {
"title": "Int32",
"type": "integer",
"description": "訊息發布狀態 : [0:'目前無資料顯示',1:'目前正執行循環顯示']",
"format": "int32"
},
"MessagesText": {
"title": "String",
"type": "string",
"description": "內容文字訊息",
"nullable": true,
"xml": {
"name": "MessagesText"
}
},
"MessagesImage": {
"title": "String",
"type": "string",
"description": "內容圖片訊息",
"nullable": true,
"xml": {
"name": "MessagesImage"
}
},
"MessagesType": {
"title": "Int32",
"type": "integer",
"description": "訊息種類 : [1:'旅行時間資訊',2:'壅塞資訊',3:'事故資訊',4:'施工資訊',5:'停車資訊',6:'政令宣導資訊',7:'其他未定義']",
"format": "int32",
"nullable": true
},
"MessagesPriority": {
"type": "integer",
"description": "顯示優先順序",
"format": "int32",
"nullable": true
},
"Status": {
"title": "Int32",
"type": "integer",
"description": "設備狀態 : [0:'正常',1:'通訊異常',2:'停用或施工中',3:'設備故障']",
"format": "int32"
},
"DataCollectTime": {
"title": "DateTime",
"type": "string",
"description": "資料蒐集時間(ISO8601格式:yyyy-MM-ddTHH:mm:sszzz)",
"format": "date-time"
},
"SrcUpdateTime": {
"title": "DateTime",
"type": "string",
"description": "本平台資料更新時間(ISO8601格式:yyyy-MM-ddTHH:mm:sszzz)\n",
"format": "date-time"
},
"UpdateTime": {
"title": "DateTime",
"type": "string",
"description": "來源端平台資料更新時間(ISO8601格式:yyyy-MM-ddTHH:mm:sszzz)\n",
"format": "date-time"
},
"InfoTime": {
"title": "DateTime",
"type": "string",
"description": "資料代表時間(ISO8601格式:yyyy-MM-ddTHH:mm:sszzz)",
"format": "date-time"
},
"InfoDate": {
"title": "String",
"minLength": 1,
"type": "string",
"description": "資料代表日期(格式:yyyy-MM-dd)",
"xml": {
"name": "InfoDate"
}
}
},
"additionalProperties": false,
"xml": {
"name": "CMSLive"
}
},
"PTXPlus.Service.DTO.Historical.Specification.Traffic.V2.CSV.CMSLive7": {
"$ref": "#/components/schemas/PTXPlus.Service.DTO.Historical.Specification.Traffic.V2.CSV.CMSLive"
},
"PTXPlus.Service.DTO.Historical.Specification.Traffic.V2.JSON.CCTV": {
"title": "CCTV",
"required": [
"AuthorityCode",
"CCTVID",
"CountyID",
"CountyName",
"Geohash",
"InfoDate",
"InfoTime",
"LayoutMapURL",
"LinkID",
"LocationType",
"PositionLat",
"PositionLon",
"SrcUpdateTime",
"TownID",
"TownName",
"UpdateTime"
],
"type": "object",
"properties": {
"CCTVID": {
"title": "String",
"minLength": 1,
"type": "string",
"description": "CCTV設備代碼",
"xml": {
"name": "CCTVID"
}
},
"AuthorityCode": {
"title": "String",
"minLength": 1,
"type": "string",
"description": "業管機關簡碼",
"xml": {
"name": "AuthorityCode"
}
},
"SubAuthorityCode": {
"title": "String",
"type": "string",
"description": "業管子機關簡碼",
"nullable": true,
"xml": {
"name": "SubAuthorityCode"
}
},
"LinkID": {
"title": "String",
"minLength": 1,
"type": "string",
"description": "基礎路段代碼, 請參閱[**[基礎路段代碼表](https://motclink.gitbook.io/link/lu-duan-bian-ma-nei-rong/2code)**]",
"xml": {
"name": "LinkID"
}
},
"LookingViews": {
"title": "LookingView[]",
"type": "array",
"items": {
"$ref": "#/components/schemas/PTXPlus.Service.DTO.Historical.Specification.Traffic.V2.JSON.LookingView"
},
"description": "CCTV監看方向參考影像圖片",
"nullable": true,
"xml": {
"name": "LookingView[]"
}
},
"VideoStreamURL": {
"title": "String",
"type": "string",
"description": "動態影像串流網址",
"nullable": true,
"xml": {
"name": "VideoStreamURL"
}
},
"LocationType": {
"title": "Int32",
"type": "integer",
"description": "設置地點位置類型 : [1:'路側',2:'道路中央分隔島',3:'快慢分隔島',4:'車道上門架',5:'車道鋪面',6:'其他']",
"format": "int32"
},
"PositionLon": {
"title": "Double",
"type": "number",
"description": "設備架設位置 X 坐標",
"format": "double"
},
"PositionLat": {
"title": "Double",
"type": "number",
"description": "設備架設位置 Y 坐標",
"format": "double"
},
"Geohash": {
"title": "String",
"minLength": 1,
"type": "string",
"description": "地理識別碼",
"xml": {
"name": "Geohash"
}
},
"CountyID": {
"title": "String",
"minLength": 1,
"type": "string",
"description": "縣市代碼",
"xml": {
"name": "CountyID"
}
},
"CountyName": {
"title": "String",
"minLength": 1,
"type": "string",
"description": "縣市名稱",
"xml": {
"name": "CountyName"
}
},
"TownID": {
"title": "String",
"minLength": 1,
"type": "string",
"description": "市區鄉鎮代碼",
"xml": {
"name": "TownID"
}
},
"TownName": {
"title": "String",
"minLength": 1,
"type": "string",
"description": "市區鄉鎮名稱",
"xml": {
"name": "TownName"
}
},
"RoadID": {
"title": "String",
"type": "string",
"description": "道路代碼, 請參閱[**[路名碼基本資料](https://traffic-api-documentation.gitbook.io/traffic/xiang-dai-zhao-biao)**]",
"nullable": true,
"xml": {
"name": "RoadID"
}
},
"RoadName": {
"title": "String",
"type": "string",
"description": "道路名稱",
"nullable": true,
"xml": {
"name": "RoadName"
}
},
"RoadClass": {
"title": "Int32",
"type": "integer",
"description": "道路分類 : [0:'國道',1:'快速道路',2:'市區快速道路',3:'省道',4:'縣道',5:'鄉道',6:'市區一般道路',7:'匝道']",
"format": "int32",
"nullable": true
},
"RoadDirection": {
"title": "String",
"type": "string",
"description": "基礎路段所屬道路方向, 請參閱[**[道路方向資料表](https://traffic-api-documentation.gitbook.io/traffic/xiang-dai-zhao-biao)**]",
"nullable": true,
"xml": {
"name": "RoadDirection"
}
},
"RoadSection": {
"title": "RoadSection",
"allOf": [
{
"$ref": "#/components/schemas/PTXPlus.Service.DTO.Historical.Specification.Traffic.V2.Commons.RoadSection"
}
],
"description": "所在道路路段描述",
"nullable": true,
"xml": {
"name": "RoadSection"
}
},
"LocationMile": {
"title": "String",
"type": "string",
"description": "所在方向里程數",
"nullable": true,
"xml": {
"name": "LocationMile"
}
},
"LayoutMapURL": {
"title": "String",
"minLength": 1,
"type": "string",
"description": "路側設備布設簡圖URL",
"xml": {
"name": "LayoutMapURL"
}
},
"SrcUpdateTime": {
"title": "DateTime",
"type": "string",
"description": "本平台資料更新時間(ISO8601格式:yyyy-MM-ddTHH:mm:sszzz)\n",
"format": "date-time"
},
"UpdateTime": {
"title": "DateTime",
"type": "string",
"description": "來源端平台資料更新時間(ISO8601格式:yyyy-MM-ddTHH:mm:sszzz)\n",
"format": "date-time"
},
"InfoTime": {
"title": "DateTime",
"type": "string",
"description": "資料代表時間(ISO8601格式:yyyy-MM-ddTHH:mm:sszzz)",
"format": "date-time"
},
"InfoDate": {
"title": "String",
"minLength": 1,
"type": "string",
"description": "資料代表日期(格式:yyyy-MM-dd)",
"xml": {
"name": "InfoDate"
}
}
},
"additionalProperties": false,
"xml": {
"name": "CCTV"
}
},
"PTXPlus.Service.DTO.Historical.Specification.Traffic.V2.JSON.CCTV8": {
"$ref": "#/components/schemas/PTXPlus.Service.DTO.Historical.Specification.Traffic.V2.JSON.CCTV"
},
"PTXPlus.Service.DTO.Historical.Specification.Traffic.V2.JSON.LookingView": {
"title": "LookingView",
"type": "object",
"properties": {
"Bearing": {
"title": "String",
"type": "string",
"description": "參考影像圖片的看方位:[E:'東',N:'北',NE:'東北',NW:'西北',S:'南',SE:'東南',SW:'西南',W:'西'] : [E:'東',N:'北',NE:'東北',NW:'西北',S:'南',SE:'東南',SW:'西南',W:'西']",
"nullable": true
},
"Image": {
"title": "String",
"type": "string",
"description": "參考影像圖片",
"nullable": true,
"xml": {
"name": "Image"
}
}
},
"additionalProperties": false,
"xml": {
"name": "LookingView"
}
},
"PTXPlus.Service.DTO.Historical.Specification.Traffic.V2.CSV.CCTV": {
"title": "CCTV",
"required": [
"AuthorityCode",
"CCTVID",
"CountyID",
"CountyName",
"Geohash",
"InfoDate",
"InfoTime",
"LayoutMapURL",
"LinkID",
"LocationType",
"PositionLat",
"PositionLon",
"SrcUpdateTime",
"TownID",
"TownName",
"UpdateTime"
],
"type": "object",
"properties": {
"CCTVID": {
"title": "String",
"minLength": 1,
"type": "string",
"description": "CCTV設備代碼",
"xml": {
"name": "CCTVID"
}
},
"AuthorityCode": {
"title": "String",
"minLength": 1,
"type": "string",
"description": "業管機關簡碼",
"xml": {
"name": "AuthorityCode"
}
},
"SubAuthorityCode": {
"title": "String",
"type": "string",
"description": "業管子機關簡碼",
"nullable": true,
"xml": {
"name": "SubAuthorityCode"
}
},
"LinkID": {
"title": "String",
"minLength": 1,
"type": "string",
"description": "基礎路段代碼, 請參閱[**[基礎路段代碼表](https://motclink.gitbook.io/link/lu-duan-bian-ma-nei-rong/2code)**]",
"xml": {
"name": "LinkID"
}
},
"LookingViewsBearing": {
"title": "String",
"type": "string",
"description": "參考影像圖片的監看方位 : [E:'東',N:'北',NE:'東北',NW:'西北',S:'南',SE:'東南',SW:'西南',W:'西']",
"nullable": true
},
"LookingViewsImage": {
"title": "String",
"type": "string",
"description": "參考影像圖片",
"nullable": true,
"xml": {
"name": "LookingViewsImage"
}
},
"VideoStreamURL": {
"title": "String",
"type": "string",
"description": "動態影像串流網址",
"nullable": true,
"xml": {
"name": "VideoStreamURL"
}
},
"LocationType": {
"title": "Int32",
"type": "integer",
"description": "設置地點位置類型 : [1:'路側',2:'道路中央分隔島',3:'快慢分隔島',4:'車道上門架',5:'車道鋪面',6:'其他']",
"format": "int32"
},
"PositionLon": {
"title": "Double",
"type": "number",
"description": "設備架設位置 X 坐標",
"format": "double"
},
"PositionLat": {
"title": "Double",
"type": "number",
"description": "設備架設位置 Y 坐標",
"format": "double"
},
"Geohash": {
"title": "String",
"minLength": 1,
"type": "string",
"description": "地理識別碼",
"xml": {
"name": "Geohash"
}
},
"CountyID": {
"title": "String",
"minLength": 1,
"type": "string",
"description": "縣市代碼",
"xml": {
"name": "CountyID"
}
},
"CountyName": {
"title": "String",
"minLength": 1,
"type": "string",
"description": "縣市名稱",
"xml": {
"name": "CountyName"
}
},
"TownID": {
"title": "String",
"minLength": 1,
"type": "string",
"description": "市區鄉鎮代碼",
"xml": {
"name": "TownID"
}
},
"TownName": {
"title": "String",
"minLength": 1,
"type": "string",
"description": "市區鄉鎮名稱",
"xml": {
"name": "TownName"
}
},
"RoadID": {
"title": "String",
"type": "string",
"description": "道路代碼, 請參閱[**[路名碼基本資料](https://traffic-api-documentation.gitbook.io/traffic/xiang-dai-zhao-biao)**]",
"nullable": true,
"xml": {
"name": "RoadID"
}
},
"RoadName": {
"title": "String",
"type": "string",
"description": "道路名稱",
"nullable": true,
"xml": {
"name": "RoadName"
}
},
"RoadClass": {
"title": "Int32",
"type": "integer",
"description": "道路分類 : [0:'國道',1:'快速道路',2:'市區快速道路',3:'省道',4:'縣道',5:'鄉道',6:'市區一般道路',7:'匝道']",
"format": "int32",
"nullable": true
},
"RoadDirection": {
"title": "String",
"type": "string",
"description": "基礎路段所屬道路方向, 請參閱[**[道路方向資料表](https://traffic-api-documentation.gitbook.io/traffic/xiang-dai-zhao-biao)**]",
"nullable": true,
"xml": {
"name": "RoadDirection"
}
},
"RoadSectionStart": {
"title": "String",
"type": "string",
"description": "路段起點描述",
"nullable": true,
"xml": {
"name": "RoadSectionStart"
}
},
"RoadSectionEnd": {
"title": "String",
"type": "string",
"description": "路段迄點描述",
"nullable": true,
"xml": {
"name": "RoadSectionEnd"
}
},
"LocationMile": {
"title": "String",
"type": "string",
"description": "所在方向里程數",
"nullable": true,
"xml": {
"name": "LocationMile"
}
},
"LayoutMapURL": {
"title": "String",
"minLength": 1,
"type": "string",
"description": "路側設備布設簡圖URL",
"xml": {
"name": "LayoutMapURL"
}
},
"SrcUpdateTime": {
"title": "DateTime",
"type": "string",
"description": "本平台資料更新時間(ISO8601格式:yyyy-MM-ddTHH:mm:sszzz)\n",
"format": "date-time"
},
"UpdateTime": {
"title": "DateTime",
"type": "string",
"description": "來源端平台資料更新時間(ISO8601格式:yyyy-MM-ddTHH:mm:sszzz)\n",
"format": "date-time"
},
"InfoTime": {
"title": "DateTime",
"type": "string",
"description": "資料代表時間(ISO8601格式:yyyy-MM-ddTHH:mm:sszzz)",
"format": "date-time"
},
"InfoDate": {
"title": "String",
"minLength": 1,
"type": "string",
"description": "資料代表日期(格式:yyyy-MM-dd)",
"xml": {
"name": "InfoDate"
}
}
},
"additionalProperties": false,
"xml": {
"name": "CCTV"
}
},
"PTXPlus.Service.DTO.Historical.Specification.Traffic.V2.CSV.CCTV9": {
"$ref": "#/components/schemas/PTXPlus.Service.DTO.Historical.Specification.Traffic.V2.CSV.CCTV"
},
"PTXPlus.Service.DTO.Historical.Specification.Traffic.V2.JSON.ETag": {
"title": "ETag",
"required": [
"AuthorityCode",
"CountyID",
"CountyName",
"ETagGantryID",
"Geohash",
"InfoDate",
"InfoTime",
"LayoutMapURL",
"LinkID",
"LocationType",
"PositionLat",
"PositionLon",
"SrcUpdateTime",
"TownID",
"TownName",
"UpdateTime"
],
"type": "object",
"properties": {
"ETagGantryID": {
"title": "String",
"minLength": 1,
"type": "string",
"description": "eTag偵測站代碼",
"xml": {
"name": "ETagGantryID"
}
},
"AuthorityCode": {
"title": "String",
"minLength": 1,
"type": "string",
"description": "業管機關簡碼",
"xml": {
"name": "AuthorityCode"
}
},
"SubAuthorityCode": {
"title": "String",
"type": "string",
"description": "業管子機關簡碼",
"nullable": true,
"xml": {
"name": "SubAuthorityCode"
}
},
"LinkID": {
"title": "String",
"minLength": 1,
"type": "string",
"description": "基礎路段代碼, 請參閱[**[基礎路段代碼表](https://motclink.gitbook.io/link/lu-duan-bian-ma-nei-rong/2code)**]",
"xml": {
"name": "LinkID"
}
},
"LocationType": {
"title": "Int32",
"type": "integer",
"description": "設置地點位置類型 : [1:'路側',2:'道路中央分隔島',3:'快慢分隔島',4:'車道上門架',5:'車道鋪面',6:'其他']",
"format": "int32"
},
"PositionLon": {
"title": "Double",
"type": "number",
"description": "設備架設位置 X 坐標",
"format": "double"
},
"PositionLat": {
"title": "Double",
"type": "number",
"description": "設備架設位置 Y 坐標",
"format": "double"
},
"Geohash": {
"title": "String",
"minLength": 1,
"type": "string",
"description": "地理識別碼",
"xml": {
"name": "Geohash"
}
},
"CountyID": {
"title": "String",
"minLength": 1,
"type": "string",
"description": "縣市代碼",
"xml": {
"name": "CountyID"
}
},
"CountyName": {
"title": "String",
"minLength": 1,
"type": "string",
"description": "縣市名稱",
"xml": {
"name": "CountyName"
}
},
"TownID": {
"title": "String",
"minLength": 1,
"type": "string",
"description": "市區鄉鎮代碼",
"xml": {
"name": "TownID"
}
},
"TownName": {
"title": "String",
"minLength": 1,
"type": "string",
"description": "市區鄉鎮名稱",
"xml": {
"name": "TownName"
}
},
"RoadID": {
"title": "String",
"type": "string",
"description": "道路代碼, 請參閱[**[路名碼基本資料](https://traffic-api-documentation.gitbook.io/traffic/xiang-dai-zhao-biao)**]",
"nullable": true,
"xml": {
"name": "RoadID"
}
},
"RoadName": {
"title": "String",
"type": "string",
"description": "道路名稱",
"nullable": true,
"xml": {
"name": "RoadName"
}
},
"RoadClass": {
"title": "Int32",
"type": "integer",
"description": "道路分類 : [0:'國道',1:'快速道路',2:'市區快速道路',3:'省道',4:'縣道',5:'鄉道',6:'市區一般道路',7:'匝道']",
"format": "int32",
"nullable": true
},
"RoadDirection": {
"title": "String",
"type": "string",
"description": "基礎路段所屬道路方向, 請參閱[**[道路方向資料表](https://traffic-api-documentation.gitbook.io/traffic/xiang-dai-zhao-biao)**]",
"nullable": true,
"xml": {
"name": "RoadDirection"
}
},
"RoadSection": {
"title": "RoadSection",
"allOf": [
{
"$ref": "#/components/schemas/PTXPlus.Service.DTO.Historical.Specification.Traffic.V2.Commons.RoadSection"
}
],
"description": "所在道路路段描述",
"nullable": true,
"xml": {
"name": "RoadSection"
}
},
"LocationMile": {
"title": "String",
"type": "string",
"description": "所在方向里程數",
"nullable": true,
"xml": {
"name": "LocationMile"
}
},
"LayoutMapURL": {
"title": "String",
"minLength": 1,
"type": "string",
"description": "路側設備布設簡圖URL",
"xml": {
"name": "LayoutMapURL"
}
},
"SrcUpdateTime": {
"title": "DateTime",
"type": "string",
"description": "本平台資料更新時間(ISO8601格式:yyyy-MM-ddTHH:mm:sszzz)\n",
"format": "date-time"
},
"UpdateTime": {
"title": "DateTime",
"type": "string",
"description": "來源端平台資料更新時間(ISO8601格式:yyyy-MM-ddTHH:mm:sszzz)\n",
"format": "date-time"
},
"InfoTime": {
"title": "DateTime",
"type": "string",
"description": "資料代表時間(ISO8601格式:yyyy-MM-ddTHH:mm:sszzz)",
"format": "date-time"
},
"InfoDate": {
"title": "String",
"minLength": 1,
"type": "string",
"description": "資料代表日期(格式:yyyy-MM-dd)",
"xml": {
"name": "InfoDate"
}
}
},
"additionalProperties": false,
"xml": {
"name": "ETag"
}
},
"PTXPlus.Service.DTO.Historical.Specification.Traffic.V2.JSON.ETag10": {
"$ref": "#/components/schemas/PTXPlus.Service.DTO.Historical.Specification.Traffic.V2.JSON.ETag"
},
"PTXPlus.Service.DTO.Historical.Specification.Traffic.V2.CSV.ETag": {
"title": "ETag",
"required": [
"AuthorityCode",
"CountyID",
"CountyName",
"ETagGantryID",
"Geohash",
"InfoDate",
"InfoTime",
"LayoutMapURL",
"LinkID",
"LocationType",
"PositionLat",
"PositionLon",
"SrcUpdateTime",
"TownID",
"TownName",
"UpdateTime"
],
"type": "object",
"properties": {
"ETagGantryID": {
"title": "String",
"minLength": 1,
"type": "string",
"description": "eTag偵測站代碼",
"xml": {
"name": "ETagGantryID"
}
},
"AuthorityCode": {
"title": "String",
"minLength": 1,
"type": "string",
"description": "業管機關簡碼",
"xml": {
"name": "AuthorityCode"
}
},
"SubAuthorityCode": {
"title": "String",
"type": "string",
"description": "業管子機關簡碼",
"nullable": true,
"xml": {
"name": "SubAuthorityCode"
}
},
"LinkID": {
"title": "String",
"minLength": 1,
"type": "string",
"description": "基礎路段代碼, 請參閱[**[基礎路段代碼表](https://motclink.gitbook.io/link/lu-duan-bian-ma-nei-rong/2code)**]",
"xml": {
"name": "LinkID"
}
},
"LocationType": {
"title": "Int32",
"type": "integer",
"description": "設置地點位置類型 : [1:'路側',2:'道路中央分隔島',3:'快慢分隔島',4:'車道上門架',5:'車道鋪面',6:'其他']",
"format": "int32"
},
"PositionLon": {
"title": "Double",
"type": "number",
"description": "設備架設位置 X 坐標",
"format": "double"
},
"PositionLat": {
"title": "Double",
"type": "number",
"description": "設備架設位置 Y 坐標",
"format": "double"
},
"Geohash": {
"title": "String",
"minLength": 1,
"type": "string",
"description": "地理識別碼",
"xml": {
"name": "Geohash"
}
},
"CountyID": {
"title": "String",
"minLength": 1,
"type": "string",
"description": "縣市代碼",
"xml": {
"name": "CountyID"
}
},
"CountyName": {
"title": "String",
"minLength": 1,
"type": "string",
"description": "縣市名稱",
"xml": {
"name": "CountyName"
}
},
"TownID": {
"title": "String",
"minLength": 1,
"type": "string",
"description": "市區鄉鎮代碼",
"xml": {
"name": "TownID"
}
},
"TownName": {
"title": "String",
"minLength": 1,
"type": "string",
"description": "市區鄉鎮名稱",
"xml": {
"name": "TownName"
}
},
"RoadID": {
"title": "String",
"type": "string",
"description": "道路代碼, 請參閱[**[路名碼基本資料](https://traffic-api-documentation.gitbook.io/traffic/xiang-dai-zhao-biao)**]",
"nullable": true,
"xml": {
"name": "RoadID"
}
},
"RoadName": {
"title": "String",
"type": "string",
"description": "道路名稱",
"nullable": true,
"xml": {
"name": "RoadName"
}
},
"RoadClass": {
"title": "Int32",
"type": "integer",
"description": "道路分類 : [0:'國道',1:'快速道路',2:'市區快速道路',3:'省道',4:'縣道',5:'鄉道',6:'市區一般道路',7:'匝道']",
"format": "int32",
"nullable": true
},
"RoadDirection": {
"title": "String",
"type": "string",
"description": "基礎路段所屬道路方向, 請參閱[**[道路方向資料表](https://traffic-api-documentation.gitbook.io/traffic/xiang-dai-zhao-biao)**]",
"nullable": true,
"xml": {
"name": "RoadDirection"
}
},
"RoadSectionStart": {
"title": "String",
"type": "string",
"description": "路段起點描述",
"nullable": true,
"xml": {
"name": "RoadSectionStart"
}
},
"RoadSectionEnd": {
"title": "String",
"type": "string",
"description": "路段迄點描述",
"nullable": true,
"xml": {
"name": "RoadSectionEnd"
}
},
"LocationMile": {
"title": "String",
"type": "string",
"description": "所在方向里程數",
"nullable": true,
"xml": {
"name": "LocationMile"
}
},
"LayoutMapURL": {
"title": "String",
"minLength": 1,
"type": "string",
"description": "路側設備布設簡圖URL",
"xml": {
"name": "LayoutMapURL"
}
},
"SrcUpdateTime": {
"title": "DateTime",
"type": "string",
"description": "本平台資料更新時間(ISO8601格式:yyyy-MM-ddTHH:mm:sszzz)\n",
"format": "date-time"
},
"UpdateTime": {
"title": "DateTime",
"type": "string",
"description": "來源端平台資料更新時間(ISO8601格式:yyyy-MM-ddTHH:mm:sszzz)\n",
"format": "date-time"
},
"InfoTime": {
"title": "DateTime",
"type": "string",
"description": "資料代表時間(ISO8601格式:yyyy-MM-ddTHH:mm:sszzz)",
"format": "date-time"
},
"InfoDate": {
"title": "String",
"minLength": 1,
"type": "string",
"description": "資料代表日期(格式:yyyy-MM-dd)",
"xml": {
"name": "InfoDate"
}
}
},
"additionalProperties": false,
"xml": {
"name": "ETag"
}
},
"PTXPlus.Service.DTO.Historical.Specification.Traffic.V2.CSV.ETag11": {
"$ref": "#/components/schemas/PTXPlus.Service.DTO.Historical.Specification.Traffic.V2.CSV.ETag"
},
"PTXPlus.Service.DTO.Historical.Specification.Traffic.V2.JSON.ETagPair": {
"title": "ETagPair",
"required": [
"AuthorityCode",
"Description",
"Distance",
"EndETagGantryID",
"ETagPairID",
"Geometry",
"InfoDate",
"InfoTime",
"SrcUpdateTime",
"StartETagGantryID",
"UpdateTime"
],
"type": "object",
"properties": {
"ETagPairID": {
"title": "String",
"minLength": 1,
"type": "string",
"description": "eTag 配對路徑代碼",
"xml": {
"name": "ETagPairID"
}
},
"AuthorityCode": {
"title": "String",
"minLength": 1,
"type": "string",
"description": "業管機關簡碼",
"xml": {
"name": "AuthorityCode"
}
},
"SubAuthorityCode": {
"title": "String",
"type": "string",
"description": "業管子機關簡碼",
"nullable": true,
"xml": {
"name": "SubAuthorityCode"
}
},
"StartETagGantryID": {
"title": "String",
"minLength": 1,
"type": "string",
"description": "eTag配對起始點偵測站代碼",
"xml": {
"name": "StartETagGantryID"
}
},
"EndETagGantryID": {
"title": "String",
"minLength": 1,
"type": "string",
"description": "eTag配對結束點偵測站代碼",
"xml": {
"name": "EndETagGantryID"
}
},
"Description": {
"title": "String",
"minLength": 1,
"type": "string",
"description": "配對路徑文字描述",
"xml": {
"name": "Description"
}
},
"Distance": {
"title": "Double",
"type": "number",
"description": "配對路徑距離, GIS提供的配對路徑距離(KM), 可到小數點3位",
"format": "double"
},
"StartLinkID": {
"title": "String",
"type": "string",
"description": "起點基礎路段代碼, 請參閱[**[基礎路段代碼表](https://motclink.gitbook.io/link/lu-duan-bian-ma-nei-rong/2code)**]",
"nullable": true,
"xml": {
"name": "StartLinkID"
}
},
"EndLinkID": {
"title": "String",
"type": "string",
"description": "迄點基礎路段代碼, 請參閱[**[基礎路段代碼表](https://motclink.gitbook.io/link/lu-duan-bian-ma-nei-rong/2code)**]",
"nullable": true,
"xml": {
"name": "EndLinkID"
}
},
"LinkIDs": {
"title": "LinkIDItem[]",
"type": "array",
"items": {
"$ref": "#/components/schemas/PTXPlus.Service.DTO.Historical.Specification.Traffic.V2.Commons.LinkIDItem"
},
"description": "機關基礎路段代碼集合",
"nullable": true,
"xml": {
"name": "LinkIDItem[]"
}
},
"SectionID": {
"title": "String",
"type": "string",
"description": "機關發布路段代碼",
"nullable": true,
"xml": {
"name": "SectionID"
}
},
"Geometry": {
"title": "String",
"minLength": 1,
"type": "string",
"description": "配對路徑線型圖資資料, 格式為WKT",
"xml": {
"name": "Geometry"
}
},
"SrcUpdateTime": {
"title": "DateTime",
"type": "string",
"description": "本平台資料更新時間(ISO8601格式:yyyy-MM-ddTHH:mm:sszzz)\n",
"format": "date-time"
},
"UpdateTime": {
"title": "DateTime",
"type": "string",
"description": "來源端平台資料更新時間(ISO8601格式:yyyy-MM-ddTHH:mm:sszzz)\n",
"format": "date-time"
},
"InfoTime": {
"title": "DateTime",
"type": "string",
"description": "資料代表時間(ISO8601格式:yyyy-MM-ddTHH:mm:sszzz)",
"format": "date-time"
},
"InfoDate": {
"title": "String",
"minLength": 1,
"type": "string",
"description": "資料代表日期(格式:yyyy-MM-dd)",
"xml": {
"name": "InfoDate"
}
}
},
"additionalProperties": false,
"xml": {
"name": "ETagPair"
}
},
"PTXPlus.Service.DTO.Historical.Specification.Traffic.V2.JSON.ETagPair12": {
"$ref": "#/components/schemas/PTXPlus.Service.DTO.Historical.Specification.Traffic.V2.JSON.ETagPair"
},
"PTXPlus.Service.DTO.Historical.Specification.Traffic.V2.Commons.LinkIDItem": {
"title": "LinkIDItem",
"required": [
"LinkID"
],
"type": "object",
"properties": {
"LinkID": {
"title": "String",
"minLength": 1,
"type": "string",
"description": "基礎路段代碼, 請參閱[**[基礎路段代碼表](https://motclink.gitbook.io/link/lu-duan-bian-ma-nei-rong/2code)**]",
"xml": {
"name": "LinkID"
}
}
},
"additionalProperties": false,
"xml": {
"name": "LinkIDItem"
}
},
"PTXPlus.Service.DTO.Historical.Specification.Traffic.V2.CSV.ETagPair": {
"title": "ETagPair",
"required": [
"AuthorityCode",
"Description",
"Distance",
"EndETagGantryID",
"ETagPairID",
"Geometry",
"InfoDate",
"InfoTime",
"SrcUpdateTime",
"StartETagGantryID",
"UpdateTime"
],
"type": "object",
"properties": {
"ETagPairID": {
"title": "String",
"minLength": 1,
"type": "string",
"description": "eTag 配對路徑代碼",
"xml": {
"name": "ETagPairID"
}
},
"AuthorityCode": {
"title": "String",
"minLength": 1,
"type": "string",
"description": "業管機關簡碼",
"xml": {
"name": "AuthorityCode"
}
},
"SubAuthorityCode": {
"title": "String",
"type": "string",
"description": "業管子機關簡碼",
"nullable": true,
"xml": {
"name": "SubAuthorityCode"
}
},
"StartETagGantryID": {
"title": "String",
"minLength": 1,
"type": "string",
"description": "eTag配對起始點偵測站代碼",
"xml": {
"name": "StartETagGantryID"
}
},
"EndETagGantryID": {
"title": "String",
"minLength": 1,
"type": "string",
"description": "eTag配對結束點偵測站代碼",
"xml": {
"name": "EndETagGantryID"
}
},
"Description": {
"title": "String",
"minLength": 1,
"type": "string",
"description": "配對路徑文字描述",
"xml": {
"name": "Description"
}
},
"Distance": {
"title": "Double",
"type": "number",
"description": "配對路徑距離, GIS提供的配對路徑距離(KM), 可到小數點3位",
"format": "double"
},
"StartLinkID": {
"title": "String",
"type": "string",
"description": "起點基礎路段代碼, 請參閱[**[基礎路段代碼表](https://motclink.gitbook.io/link/lu-duan-bian-ma-nei-rong/2code)**]",
"nullable": true,
"xml": {
"name": "StartLinkID"
}
},
"EndLinkID": {
"title": "String",
"type": "string",
"description": "迄點基礎路段代碼, 請參閱[**[基礎路段代碼表](https://motclink.gitbook.io/link/lu-duan-bian-ma-nei-rong/2code)**]",
"nullable": true,
"xml": {
"name": "EndLinkID"
}
},
"LinkIDsLinkIDs": {
"title": "String",
"type": "string",
"description": "基礎路段代碼",
"nullable": true,
"xml": {
"name": "LinkIDsLinkIDs"
}
},
"SectionID": {
"title": "String",
"type": "string",
"description": "機關發布路段代碼",
"nullable": true,
"xml": {
"name": "SectionID"
}
},
"Geometry": {
"title": "String",
"minLength": 1,
"type": "string",
"description": "配對路徑線型圖資資料, 格式為WKT",
"xml": {
"name": "Geometry"
}
},
"SrcUpdateTime": {
"title": "DateTime",
"type": "string",
"description": "本平台資料更新時間(ISO8601格式:yyyy-MM-ddTHH:mm:sszzz)\n",
"format": "date-time"
},
"UpdateTime": {
"title": "DateTime",
"type": "string",
"description": "來源端平台資料更新時間(ISO8601格式:yyyy-MM-ddTHH:mm:sszzz)\n",
"format": "date-time"
},
"InfoTime": {
"title": "DateTime",
"type": "string",
"description": "資料代表時間(ISO8601格式:yyyy-MM-ddTHH:mm:sszzz)",
"format": "date-time"
},
"InfoDate": {
"title": "String",
"minLength": 1,
"type": "string",
"description": "資料代表日期(格式:yyyy-MM-dd)",
"xml": {
"name": "InfoDate"
}
}
},
"additionalProperties": false,
"xml": {
"name": "ETagPair"
}
},
"PTXPlus.Service.DTO.Historical.Specification.Traffic.V2.CSV.ETagPair13": {
"$ref": "#/components/schemas/PTXPlus.Service.DTO.Historical.Specification.Traffic.V2.CSV.ETagPair"
},
"PTXPlus.Service.DTO.Historical.Specification.Traffic.V2.JSON.ETagPairLive": {
"title": "ETagPairLive",
"required": [
"AuthorityCode",
"DataCollectTime",
"EndETagStatus",
"EndTime",
"ETagPairID",
"Flows",
"InfoDate",
"InfoTime",
"SrcUpdateTime",
"StartETagStatus",
"StartTime",
"UpdateTime"
],
"type": "object",
"properties": {
"ETagPairID": {
"title": "String",
"minLength": 1,
"type": "string",
"description": "ETag 配對路徑編號",
"xml": {
"name": "ETagPairID"
}
},
"AuthorityCode": {
"title": "String",
"minLength": 1,
"type": "string",
"description": "業管機關簡碼",
"xml": {
"name": "AuthorityCode"
}
},
"SubAuthorityCode": {
"title": "String",
"type": "string",
"description": "業管子機關簡碼\n",
"nullable": true,
"xml": {
"name": "SubAuthorityCode"
}
},
"StartETagStatus": {
"title": "Int32",
"type": "integer",
"description": "配對起始點設備狀態 : [0:'正常',1:'通訊異常',2:'停用或施工中',3:'設備故障']",
"format": "int32"
},
"EndETagStatus": {
"title": "Int32",
"type": "integer",
"description": "配對結束點設備狀態 : [0:'正常',1:'通訊異常',2:'停用或施工中',3:'設備故障']",
"format": "int32"
},
"Flows": {
"title": "Flow[]",
"type": "array",
"items": {
"$ref": "#/components/schemas/PTXPlus.Service.DTO.Historical.Specification.Traffic.V2.JSON.Flow"
},
"description": "偵測車流資訊",
"xml": {
"name": "Flow[]"
}
},
"StartTime": {
"title": "DateTime",
"type": "string",
"description": "資料蒐集起始時間(指通過迄點資料) (ISO8601格式:yyyy-MM-ddTHH:mm:sszzz)",
"format": "date-time"
},
"EndTime": {
"title": "DateTime",
"type": "string",
"description": "資料蒐集結束時間(指通過迄點資料) (ISO8601格式:yyyy-MM-ddTHH:mm:sszzz)",
"format": "date-time"
},
"DataCollectTime": {
"title": "DateTime",
"type": "string",
"description": "資料蒐集時間(ISO8601格式:yyyy-MM-ddTHH:mm:sszzz)",
"format": "date-time"
},
"SrcUpdateTime": {
"title": "DateTime",
"type": "string",
"description": "本平台資料更新時間(ISO8601格式:yyyy-MM-ddTHH:mm:sszzz)\n",
"format": "date-time"
},
"UpdateTime": {
"title": "DateTime",
"type": "string",
"description": "來源端平台資料更新時間(ISO8601格式:yyyy-MM-ddTHH:mm:sszzz)\n",
"format": "date-time"
},
"InfoTime": {
"title": "DateTime",
"type": "string",
"description": "資料代表時間(ISO8601格式:yyyy-MM-ddTHH:mm:sszzz)",
"format": "date-time"
},
"InfoDate": {
"title": "String",
"minLength": 1,
"type": "string",
"description": "資料代表日期(格式:yyyy-MM-dd)",
"xml": {
"name": "InfoDate"
}
}
},
"additionalProperties": false,
"xml": {
"name": "ETagPairLive"
}
},
"PTXPlus.Service.DTO.Historical.Specification.Traffic.V2.JSON.ETagPairLive14": {
"$ref": "#/components/schemas/PTXPlus.Service.DTO.Historical.Specification.Traffic.V2.JSON.ETagPairLive"
},
"PTXPlus.Service.DTO.Historical.Specification.Traffic.V2.JSON.Flow": {
"title": "Flow",
"required": [
"SpaceMeanSpeed",
"StandardDeviation",
"TravelTime",
"VehicleCount",
"VehicleType"
],
"type": "object",
"properties": {
"VehicleType": {
"title": "Int32",
"type": "integer",
"description": "車種代碼, 請參閱[**[車種代碼](https://traffic-api-documentation.gitbook.io/traffic/xiang-dai-zhao-biao)**]",
"format": "int32"
},
"TravelTime": {
"title": "Int32",
"type": "integer",
"description": "平均旅行時間(指定車種下), 單位:秒, -99=資料異常",
"format": "int32"
},
"StandardDeviation": {
"title": "Int32",
"type": "integer",
"description": "配對樣本數之旅行時間標準差, 單位:秒, -99=資料異常",
"format": "int32"
},
"SpaceMeanSpeed": {
"title": "Double",
"type": "number",
"description": "平均車速 (指定車種下), 單位:KM/Hr, -99=資料異常",
"format": "double"
},
"VehicleCount": {
"title": "Int32",
"type": "integer",
"description": "配對樣本數(指定車種下), 單位:輛",
"format": "int32"
}
},
"additionalProperties": false,
"xml": {
"name": "Flow"
}
},
"PTXPlus.Service.DTO.Historical.Specification.Traffic.V2.CSV.ETagPairLive": {
"title": "ETagPairLive",
"required": [
"AuthorityCode",
"DataCollectTime",
"EndETagStatus",
"EndTime",
"ETagPairID",
"FlowsSpaceMeanSpeed",
"FlowsStandardDeviation",
"FlowsTravelTime",
"FlowsVehicleCount",
"FlowsVehicleType",
"InfoDate",
"InfoTime",
"SrcUpdateTime",
"StartETagStatus",
"StartTime",
"UpdateTime"
],
"type": "object",
"properties": {
"ETagPairID": {
"title": "String",
"minLength": 1,
"type": "string",
"description": "ETag 配對路徑編號",
"xml": {
"name": "ETagPairID"
}
},
"AuthorityCode": {
"title": "String",
"minLength": 1,
"type": "string",
"description": "業管機關簡碼",
"xml": {
"name": "AuthorityCode"
}
},
"SubAuthorityCode": {
"title": "String",
"type": "string",
"description": "業管子機關簡碼\n",
"nullable": true,
"xml": {
"name": "SubAuthorityCode"
}
},
"StartETagStatus": {
"title": "Int32",
"type": "integer",
"description": "配對起始點設備狀態 : [0:'正常',1:'通訊異常',2:'停用或施工中',3:'設備故障']",
"format": "int32"
},
"EndETagStatus": {
"title": "Int32",
"type": "integer",
"description": "配對結束點設備狀態 : [0:'正常',1:'通訊異常',2:'停用或施工中',3:'設備故障']",
"format": "int32"
},
"FlowsVehicleType": {
"title": "Int32",
"type": "integer",
"description": "車種代碼, 請參閱[**[車種代碼](https://traffic-api-documentation.gitbook.io/traffic/xiang-dai-zhao-biao)**]",
"format": "int32"
},
"FlowsTravelTime": {
"title": "Int32",
"type": "integer",
"description": "平均旅行時間(指定車種下), 單位:秒, -99=資料異常",
"format": "int32"
},
"FlowsStandardDeviation": {
"title": "Int32",
"type": "integer",
"description": "配對樣本數之旅行時間標準差, 單位:秒, -99=資料異常",
"format": "int32"
},
"FlowsSpaceMeanSpeed": {
"title": "Double",
"type": "number",
"description": "平均車速 (指定車種下), 單位:KM/Hr, -99=資料異常",
"format": "double"
},
"FlowsVehicleCount": {
"title": "Int32",
"type": "integer",
"description": "配對樣本數(指定車種下), 單位:輛",
"format": "int32"
},
"StartTime": {
"title": "DateTime",
"type": "string",
"description": "資料蒐集起始時間(指通過迄點資料) (ISO8601格式:yyyy-MM-ddTHH:mm:sszzz)",
"format": "date-time"
},
"EndTime": {
"title": "DateTime",
"type": "string",
"description": "資料蒐集結束時間(指通過迄點資料) (ISO8601格式:yyyy-MM-ddTHH:mm:sszzz)",
"format": "date-time"
},
"DataCollectTime": {
"title": "DateTime",
"type": "string",
"description": "資料蒐集時間(ISO8601格式:yyyy-MM-ddTHH:mm:sszzz)",
"format": "date-time"
},
"SrcUpdateTime": {
"title": "DateTime",
"type": "string",
"description": "本平台資料更新時間(ISO8601格式:yyyy-MM-ddTHH:mm:sszzz)\n",
"format": "date-time"
},
"UpdateTime": {
"title": "DateTime",
"type": "string",
"description": "來源端平台資料更新時間(ISO8601格式:yyyy-MM-ddTHH:mm:sszzz)\n",
"format": "date-time"
},
"InfoTime": {
"title": "DateTime",
"type": "string",
"description": "資料代表時間(ISO8601格式:yyyy-MM-ddTHH:mm:sszzz)",
"format": "date-time"
},
"InfoDate": {
"title": "String",
"minLength": 1,
"type": "string",
"description": "資料代表日期(格式:yyyy-MM-dd)",
"xml": {
"name": "InfoDate"
}
}
},
"additionalProperties": false,
"xml": {
"name": "ETagPairLive"
}
},
"PTXPlus.Service.DTO.Historical.Specification.Traffic.V2.CSV.ETagPairLive15": {
"$ref": "#/components/schemas/PTXPlus.Service.DTO.Historical.Specification.Traffic.V2.CSV.ETagPairLive"
},
"PTXPlus.Service.DTO.Historical.Specification.Traffic.V2.JSON.Section": {
"title": "Section",
"required": [
"AuthorityCode",
"InfoDate",
"InfoTime",
"RoadClass",
"RoadDirection",
"RoadID",
"RoadName",
"RoadSection",
"SectionID",
"SectionName",
"SrcUpdateTime",
"UpdateTime"
],
"type": "object",
"properties": {
"SectionID": {
"title": "String",
"minLength": 1,
"type": "string",
"description": "機關發布路段代碼",
"xml": {
"name": "SectionID"
}
},
"AuthorityCode": {
"title": "String",
"minLength": 1,
"type": "string",
"description": "業管機關簡碼",
"xml": {
"name": "AuthorityCode"
}
},
"SubAuthorityCode": {
"title": "String",
"type": "string",
"description": "業管子機關簡碼",
"nullable": true,
"xml": {
"name": "SubAuthorityCode"
}
},
"SectionName": {
"title": "String",
"minLength": 1,
"type": "string",
"description": "機關發布路段中文名稱描述",
"xml": {
"name": "SectionName"
}
},
"RoadID": {
"title": "String",
"minLength": 1,
"type": "string",
"description": "道路代碼, 請參閱[**[路名碼基本資料](https://traffic-api-documentation.gitbook.io/traffic/xiang-dai-zhao-biao)**]",
"xml": {
"name": "RoadID"
}
},
"RoadName": {
"title": "String",
"minLength": 1,
"type": "string",
"description": "道路路名",
"xml": {
"name": "RoadName"
}
},
"RoadClass": {
"title": "Int32",
"type": "integer",
"description": "道路分類 : [0:'國道',1:'快速道路',2:'市區快速道路',3:'省道',4:'縣道',5:'鄉道',6:'市區一般道路',7:'匝道']",
"format": "int32"
},
"RoadDirection": {
"title": "String",
"minLength": 1,
"type": "string",
"description": "基礎路段所屬道路方向, 請參閱[**[道路方向資料表](https://traffic-api-documentation.gitbook.io/traffic/xiang-dai-zhao-biao)**]",
"xml": {
"name": "RoadDirection"
}
},
"RoadSection": {
"title": "RoadSection",
"allOf": [
{
"$ref": "#/components/schemas/PTXPlus.Service.DTO.Historical.Specification.Traffic.V2.Commons.RoadSection"
}
],
"description": "所在道路路段描述",
"xml": {
"name": "RoadSection"
}
},
"SectionLength": {
"type": "number",
"description": "機關發布路段長度, GIS的提供路段長度(KM), 可到小數點3位, 單位:KM",
"format": "float",
"nullable": true
},
"SectionMile": {
"title": "SectionMile",
"allOf": [
{
"$ref": "#/components/schemas/PTXPlus.Service.DTO.Historical.Specification.Traffic.V2.Commons.SectionMile"
}
],
"description": "機關發布路段所在位置之起迄里程數",
"nullable": true,
"xml": {
"name": "SectionMile"
}
},
"SectionStart": {
"title": "Point",
"allOf": [
{
"$ref": "#/components/schemas/PTXPlus.Service.DTO.Historical.Specification.Traffic.V2.Commons.Point"
}
],
"description": "機關發布路段起點座標",
"nullable": true,
"xml": {
"name": "Point"
}
},
"SectionEnd": {
"title": "Point",
"allOf": [
{
"$ref": "#/components/schemas/PTXPlus.Service.DTO.Historical.Specification.Traffic.V2.Commons.Point"
}
],
"description": "機關發布路段迄點座標",
"nullable": true,
"xml": {
"name": "Point"
}
},
"SpeedLimit": {
"type": "integer",
"description": "機關發布路段最高限速",
"format": "int32",
"nullable": true
},
"SrcUpdateTime": {
"title": "DateTime",
"type": "string",
"description": "本平台資料更新時間(ISO8601格式:yyyy-MM-ddTHH:mm:sszzz)\n",
"format": "date-time"
},
"UpdateTime": {
"title": "DateTime",
"type": "string",
"description": "來源端平台資料更新時間(ISO8601格式:yyyy-MM-ddTHH:mm:sszzz)\n",
"format": "date-time"
},
"InfoTime": {
"title": "DateTime",
"type": "string",
"description": "資料代表時間(ISO8601格式:yyyy-MM-ddTHH:mm:sszzz)",
"format": "date-time"
},
"InfoDate": {
"title": "String",
"minLength": 1,
"type": "string",
"description": "資料代表日期(格式:yyyy-MM-dd)",
"xml": {
"name": "InfoDate"
}
}
},
"additionalProperties": false,
"xml": {
"name": "Section"
}
},
"PTXPlus.Service.DTO.Historical.Specification.Traffic.V2.JSON.Section16": {
"$ref": "#/components/schemas/PTXPlus.Service.DTO.Historical.Specification.Traffic.V2.JSON.Section"
},
"PTXPlus.Service.DTO.Historical.Specification.Traffic.V2.Commons.SectionMile": {
"title": "SectionMile",
"type": "object",
"properties": {
"StartKM": {
"title": "String",
"type": "string",
"description": "起點里程數, 里程表示方式:整數公里數+整數公里數下 3 位,如 36K+525",
"nullable": true,
"xml": {
"name": "StartKM"
}
},
"EndKM": {
"title": "String",
"type": "string",
"description": "迄點里程數, 里程表示方式:整數公里數+整數公里數下 3 位,如 36K+525",
"nullable": true,
"xml": {
"name": "EndKM"
}
}
},
"additionalProperties": false,
"xml": {
"name": "SectionMile"
}
},
"PTXPlus.Service.DTO.Historical.Specification.Traffic.V2.Commons.Point": {
"title": "Point",
"type": "object",
"properties": {
"PositionLat": {
"type": "number",
"description": "位置緯度(WGS84)",
"format": "float",
"nullable": true
},
"PositionLon": {
"type": "number",
"description": "位置經度(WGS84)",
"format": "float",
"nullable": true
}
},
"additionalProperties": false,
"xml": {
"name": "Point"
}
},
"PTXPlus.Service.DTO.Historical.Specification.Traffic.V2.CSV.Section": {
"title": "Section",
"required": [
"AuthorityCode",
"InfoDate",
"InfoTime",
"RoadClass",
"RoadDirection",
"RoadID",
"RoadName",
"SectionID",
"SectionName",
"SrcUpdateTime",
"UpdateTime"
],
"type": "object",
"properties": {
"SectionID": {
"title": "String",
"minLength": 1,
"type": "string",
"description": "機關發布路段代碼",
"xml": {
"name": "SectionID"
}
},
"AuthorityCode": {
"title": "String",
"minLength": 1,
"type": "string",
"description": "業管機關簡碼",
"xml": {
"name": "AuthorityCode"
}
},
"SubAuthorityCode": {
"title": "String",
"type": "string",
"description": "業管子機關簡碼",
"nullable": true,
"xml": {
"name": "SubAuthorityCode"
}
},
"SectionName": {
"title": "String",
"minLength": 1,
"type": "string",
"description": "機關發布路段中文名稱描述",
"xml": {
"name": "SectionName"
}
},
"RoadID": {
"title": "String",
"minLength": 1,
"type": "string",
"description": "道路代碼, 請參閱[**[路名碼基本資料](https://traffic-api-documentation.gitbook.io/traffic/xiang-dai-zhao-biao)**]",
"xml": {
"name": "RoadID"
}
},
"RoadName": {
"title": "String",
"minLength": 1,
"type": "string",
"description": "道路路名",
"xml": {
"name": "RoadName"
}
},
"RoadClass": {
"title": "Int32",
"type": "integer",
"description": "道路分類 : [0:'國道',1:'快速道路',2:'市區快速道路',3:'省道',4:'縣道',5:'鄉道',6:'市區一般道路',7:'匝道']",
"format": "int32"
},
"RoadDirection": {
"title": "String",
"minLength": 1,
"type": "string",
"description": "基礎路段所屬道路方向, 請參閱[**[道路方向資料表](https://traffic-api-documentation.gitbook.io/traffic/xiang-dai-zhao-biao)**]",
"xml": {
"name": "RoadDirection"
}
},
"RoadSectionStart": {
"title": "String",
"type": "string",
"description": "路段起點描述",
"nullable": true,
"xml": {
"name": "RoadSectionStart"
}
},
"RoadSectionEnd": {
"title": "String",
"type": "string",
"description": "路段迄點描述",
"nullable": true,
"xml": {
"name": "RoadSectionEnd"
}
},
"SectionLength": {
"type": "number",
"description": "機關發布路段長度, GIS的提供路段長度(KM), 可到小數點3位, 單位:KM",
"format": "float",
"nullable": true
},
"SectionMileStartKM": {
"title": "String",
"type": "string",
"description": "起點里程數",
"nullable": true,
"xml": {
"name": "SectionMileStartKM"
}
},
"SectionMileEndKM": {
"title": "String",
"type": "string",
"description": "迄點里程數",
"nullable": true,
"xml": {
"name": "SectionMileEndKM"
}
},
"SectionStartPositionLat": {
"type": "number",
"description": "機關發布路段起點位置座標緯度",
"format": "float",
"nullable": true
},
"SectionStartPositionLon": {
"type": "number",
"description": "機關發布路段起點位置座標經度",
"format": "float",
"nullable": true
},
"SectionEndPositionLat": {
"type": "number",
"description": "機關發布路段迄點位置座標緯度",
"format": "float",
"nullable": true
},
"SectionEndPositionLon": {
"type": "number",
"description": "機關發布路段迄點位置座標經度",
"format": "float",
"nullable": true
},
"SpeedLimit": {
"type": "integer",
"description": "機關發布路段最高限速",
"format": "int32",
"nullable": true
},
"SrcUpdateTime": {
"title": "DateTime",
"type": "string",
"description": "本平台資料更新時間(ISO8601格式:yyyy-MM-ddTHH:mm:sszzz)\n",
"format": "date-time"
},
"UpdateTime": {
"title": "DateTime",
"type": "string",
"description": "來源端平台資料更新時間(ISO8601格式:yyyy-MM-ddTHH:mm:sszzz)\n",
"format": "date-time"
},
"InfoTime": {
"title": "DateTime",
"type": "string",
"description": "資料代表時間(ISO8601格式:yyyy-MM-ddTHH:mm:sszzz)",
"format": "date-time"
},
"InfoDate": {
"title": "String",
"minLength": 1,
"type": "string",
"description": "資料代表日期(格式:yyyy-MM-dd)",
"xml": {
"name": "InfoDate"
}
}
},
"additionalProperties": false,
"xml": {
"name": "Section"
}
},
"PTXPlus.Service.DTO.Historical.Specification.Traffic.V2.CSV.Section17": {
"$ref": "#/components/schemas/PTXPlus.Service.DTO.Historical.Specification.Traffic.V2.CSV.Section"
},
"PTXPlus.Service.DTO.Historical.Specification.Traffic.V2.JSON.SectionLink": {
"title": "SectionLink",
"required": [
"AuthorityCode",
"InfoDate",
"InfoTime",
"SectionID",
"SrcUpdateTime",
"UpdateTime"
],
"type": "object",
"properties": {
"SectionID": {
"title": "String",
"minLength": 1,
"type": "string",
"description": "機關發布路段代碼",
"xml": {
"name": "SectionID"
}
},
"AuthorityCode": {
"title": "String",
"minLength": 1,
"type": "string",
"description": "業管機關簡碼",
"xml": {
"name": "AuthorityCode"
}
},
"SubAuthorityCode": {
"title": "String",
"type": "string",
"description": "業管子機關簡碼",
"nullable": true,
"xml": {
"name": "SubAuthorityCode"
}
},
"StartLinkID": {
"title": "String",
"type": "string",
"description": "起點基礎路段代碼, 請參閱[**[基礎路段代碼表](https://motclink.gitbook.io/link/lu-duan-bian-ma-nei-rong/2code)**]",
"nullable": true,
"xml": {
"name": "StartLinkID"
}
},
"EndLinkID": {
"title": "String",
"type": "string",
"description": "迄點基礎路段代碼, 請參閱[**[基礎路段代碼表](https://motclink.gitbook.io/link/lu-duan-bian-ma-nei-rong/2code)**]",
"nullable": true,
"xml": {
"name": "EndLinkID"
}
},
"LinkIDs": {
"title": "LinkIDItem[]",
"type": "array",
"items": {
"$ref": "#/components/schemas/PTXPlus.Service.DTO.Historical.Specification.Traffic.V2.Commons.LinkIDItem"
},
"description": "機關基礎路段代碼集合",
"nullable": true,
"xml": {
"name": "LinkIDItem[]"
}
},
"SrcUpdateTime": {
"title": "DateTime",
"type": "string",
"description": "本平台資料更新時間(ISO8601格式:yyyy-MM-ddTHH:mm:sszzz)\n",
"format": "date-time"
},
"UpdateTime": {
"title": "DateTime",
"type": "string",
"description": "來源端平台資料更新時間(ISO8601格式:yyyy-MM-ddTHH:mm:sszzz)\n",
"format": "date-time"
},
"InfoTime": {
"title": "DateTime",
"type": "string",
"description": "資料代表時間(ISO8601格式:yyyy-MM-ddTHH:mm:sszzz)",
"format": "date-time"
},
"InfoDate": {
"title": "String",
"minLength": 1,
"type": "string",
"description": "資料代表日期(格式:yyyy-MM-dd)",
"xml": {
"name": "InfoDate"
}
}
},
"additionalProperties": false,
"xml": {
"name": "SectionLink"
}
},
"PTXPlus.Service.DTO.Historical.Specification.Traffic.V2.JSON.SectionLink18": {
"$ref": "#/components/schemas/PTXPlus.Service.DTO.Historical.Specification.Traffic.V2.JSON.SectionLink"
},
"PTXPlus.Service.DTO.Historical.Specification.Traffic.V2.CSV.SectionLink": {
"title": "SectionLink",
"required": [
"AuthorityCode",
"InfoDate",
"InfoTime",
"SectionID",
"SrcUpdateTime",
"UpdateTime"
],
"type": "object",
"properties": {
"SectionID": {
"title": "String",
"minLength": 1,
"type": "string",
"description": "機關發布路段代碼",
"xml": {
"name": "SectionID"
}
},
"AuthorityCode": {
"title": "String",
"minLength": 1,
"type": "string",
"description": "業管機關簡碼",
"xml": {
"name": "AuthorityCode"
}
},
"SubAuthorityCode": {
"title": "String",
"type": "string",
"description": "業管子機關簡碼",
"nullable": true,
"xml": {
"name": "SubAuthorityCode"
}
},
"StartLinkID": {
"title": "String",
"type": "string",
"description": "起點基礎路段代碼, 請參閱[**[基礎路段代碼表](https://motclink.gitbook.io/link/lu-duan-bian-ma-nei-rong/2code)**]",
"nullable": true,
"xml": {
"name": "StartLinkID"
}
},
"EndLinkID": {
"title": "String",
"type": "string",
"description": "迄點基礎路段代碼, 請參閱[**[基礎路段代碼表](https://motclink.gitbook.io/link/lu-duan-bian-ma-nei-rong/2code)**]",
"nullable": true,
"xml": {
"name": "EndLinkID"
}
},
"LinkIDsLinkIDs": {
"title": "String",
"type": "string",
"description": "基礎路段代碼",
"nullable": true,
"xml": {
"name": "LinkIDsLinkIDs"
}
},
"SrcUpdateTime": {
"title": "DateTime",
"type": "string",
"description": "本平台資料更新時間(ISO8601格式:yyyy-MM-ddTHH:mm:sszzz)\n",
"format": "date-time"
},
"UpdateTime": {
"title": "DateTime",
"type": "string",
"description": "來源端平台資料更新時間(ISO8601格式:yyyy-MM-ddTHH:mm:sszzz)\n",
"format": "date-time"
},
"InfoTime": {
"title": "DateTime",
"type": "string",
"description": "資料代表時間(ISO8601格式:yyyy-MM-ddTHH:mm:sszzz)",
"format": "date-time"
},
"InfoDate": {
"title": "String",
"minLength": 1,
"type": "string",
"description": "資料代表日期(格式:yyyy-MM-dd)",
"xml": {
"name": "InfoDate"
}
}
},
"additionalProperties": false,
"xml": {
"name": "SectionLink"
}
},
"PTXPlus.Service.DTO.Historical.Specification.Traffic.V2.CSV.SectionLink19": {
"$ref": "#/components/schemas/PTXPlus.Service.DTO.Historical.Specification.Traffic.V2.CSV.SectionLink"
},
"PTXPlus.Service.DTO.Historical.Specification.Traffic.V2.JSON.SectionShape": {
"title": "SectionShape",
"required": [
"AuthorityCode",
"Geometry",
"InfoDate",
"InfoTime",
"SectionID",
"SrcUpdateTime",
"UpdateTime"
],
"type": "object",
"properties": {
"SectionID": {
"title": "String",
"minLength": 1,
"type": "string",
"description": "機關發布路段代碼",
"xml": {
"name": "SectionID"
}
},
"AuthorityCode": {
"title": "String",
"minLength": 1,
"type": "string",
"description": "業管機關簡碼",
"xml": {
"name": "AuthorityCode"
}
},
"SubAuthorityCode": {
"title": "String",
"type": "string",
"description": "業管子機關簡碼",
"nullable": true,
"xml": {
"name": "SubAuthorityCode"
}
},
"Geometry": {
"title": "String",
"minLength": 1,
"type": "string",
"description": "機關發布路段線型圖資資料, 格式為WKT",
"xml": {
"name": "Geometry"
}
},
"SrcUpdateTime": {
"title": "DateTime",
"type": "string",
"description": "本平台資料更新時間(ISO8601格式:yyyy-MM-ddTHH:mm:sszzz)\n",
"format": "date-time"
},
"UpdateTime": {
"title": "DateTime",
"type": "string",
"description": "來源端平台資料更新時間(ISO8601格式:yyyy-MM-ddTHH:mm:sszzz)\n",
"format": "date-time"
},
"InfoTime": {
"title": "DateTime",
"type": "string",
"description": "資料代表時間(ISO8601格式:yyyy-MM-ddTHH:mm:sszzz)",
"format": "date-time"
},
"InfoDate": {
"title": "String",
"minLength": 1,
"type": "string",
"description": "資料代表日期(格式:yyyy-MM-dd)",
"xml": {
"name": "InfoDate"
}
}
},
"additionalProperties": false,
"xml": {
"name": "SectionShape"
}
},
"PTXPlus.Service.DTO.Historical.Specification.Traffic.V2.JSON.SectionShape20": {
"$ref": "#/components/schemas/PTXPlus.Service.DTO.Historical.Specification.Traffic.V2.JSON.SectionShape"
},
"PTXPlus.Service.DTO.Historical.Specification.Traffic.V2.JSON.CongestionLevel": {
"title": "CongestionLevel",
"required": [
"AuthorityCode",
"CongestionLevelID",
"CongestionLevelName",
"Description",
"InfoDate",
"InfoTime",
"Levels",
"MeasureIndex",
"SrcUpdateTime",
"UpdateTime"
],
"type": "object",
"properties": {
"CongestionLevelID": {
"title": "String",
"minLength": 1,
"type": "string",
"description": "壅塞水準組別代碼",
"xml": {
"name": "CongestionLevelID"
}
},
"AuthorityCode": {
"title": "String",
"minLength": 1,
"type": "string",
"description": "業管機關簡碼",
"xml": {
"name": "AuthorityCode"
}
},
"SubAuthorityCode": {
"title": "String",
"type": "string",
"description": "業管子機關簡碼",
"nullable": true,
"xml": {
"name": "SubAuthorityCode"
}
},
"CongestionLevelName": {
"title": "String",
"minLength": 1,
"type": "string",
"description": "壅塞水準組別名稱",
"xml": {
"name": "CongestionLevelName"
}
},
"Description": {
"title": "String",
"minLength": 1,
"type": "string",
"description": "壅塞水準組別文字描述說明",
"xml": {
"name": "Description"
}
},
"MeasureIndex": {
"title": "String",
"type": "string",
"description": "壅塞衡量基準 : [Combined:'綜合指標',Occupancy:'佔有率',Speed:'速率',TravelTime:'旅行時間']"
},
"Levels": {
"title": "LevelItem[]",
"type": "array",
"items": {
"$ref": "#/components/schemas/PTXPlus.Service.DTO.Historical.Specification.Traffic.V2.JSON.LevelItem"
},
"description": "壅塞級別(包絡多筆)",
"xml": {
"name": "LevelItem[]"
}
},
"SrcUpdateTime": {
"title": "DateTime",
"type": "string",
"description": "本平台資料更新時間(ISO8601格式:yyyy-MM-ddTHH:mm:sszzz)\n",
"format": "date-time"
},
"UpdateTime": {
"title": "DateTime",
"type": "string",
"description": "來源端平台資料更新時間(ISO8601格式:yyyy-MM-ddTHH:mm:sszzz)\n",
"format": "date-time"
},
"InfoTime": {
"title": "DateTime",
"type": "string",
"description": "資料代表時間(ISO8601格式:yyyy-MM-ddTHH:mm:sszzz)",
"format": "date-time"
},
"InfoDate": {
"title": "String",
"minLength": 1,
"type": "string",
"description": "資料代表日期(格式:yyyy-MM-dd)",
"xml": {
"name": "InfoDate"
}
}
},
"additionalProperties": false,
"xml": {
"name": "CongestionLevel"
}
},
"PTXPlus.Service.DTO.Historical.Specification.Traffic.V2.JSON.CongestionLevel21": {
"$ref": "#/components/schemas/PTXPlus.Service.DTO.Historical.Specification.Traffic.V2.JSON.CongestionLevel"
},
"PTXPlus.Service.DTO.Historical.Specification.Traffic.V2.JSON.LevelItem": {
"title": "LevelItem",
"required": [
"Level",
"LevelName"
],
"type": "object",
"properties": {
"Level": {
"title": "Int32",
"type": "integer",
"description": "壅塞級別 : [-1:'道路封閉',0:'未知/資料不足',1:'順暢',2:'車多',3:'壅塞',4:'嚴重壅塞',5:'極度壅塞']",
"format": "int32"
},
"LevelName": {
"title": "String",
"minLength": 1,
"type": "string",
"description": "壅塞級別文字描述",
"xml": {
"name": "LevelName"
}
},
"TopValue": {
"type": "integer",
"description": "門檻值上限, 若壅塞級別為-1, 門檻植上限為-1",
"format": "int32",
"nullable": true
},
"LowValue": {
"type": "integer",
"description": "門檻值下限, 若壅塞級別為-1, 門檻植下限為-1",
"format": "int32",
"nullable": true
}
},
"additionalProperties": false,
"xml": {
"name": "LevelItem"
}
},
"PTXPlus.Service.DTO.Historical.Specification.Traffic.V2.CSV.CongestionLevel": {
"title": "CongestionLevel",
"required": [
"AuthorityCode",
"CongestionLevelID",
"CongestionLevelName",
"Description",
"InfoDate",
"InfoTime",
"LevelsLevel",
"LevelsLevelName",
"MeasureIndex",
"SrcUpdateTime",
"UpdateTime"
],
"type": "object",
"properties": {
"CongestionLevelID": {
"title": "String",
"minLength": 1,
"type": "string",
"description": "壅塞水準組別代碼",
"xml": {
"name": "CongestionLevelID"
}
},
"AuthorityCode": {
"title": "String",
"minLength": 1,
"type": "string",
"description": "業管機關簡碼",
"xml": {
"name": "AuthorityCode"
}
},
"SubAuthorityCode": {
"title": "String",
"type": "string",
"description": "業管子機關簡碼",
"nullable": true,
"xml": {
"name": "SubAuthorityCode"
}
},
"CongestionLevelName": {
"title": "String",
"minLength": 1,
"type": "string",
"description": "壅塞水準組別名稱",
"xml": {
"name": "CongestionLevelName"
}
},
"Description": {
"title": "String",
"minLength": 1,
"type": "string",
"description": "壅塞水準組別文字描述說明",
"xml": {
"name": "Description"
}
},
"MeasureIndex": {
"title": "String",
"type": "string",
"description": "壅塞衡量基準 : [Combined:'綜合指標',Occupancy:'佔有率',Speed:'速率',TravelTime:'旅行時間']"
},
"LevelsLevel": {
"title": "Int32",
"type": "integer",
"description": "壅塞級別 : [-1:'道路封閉',0:'未知/資料不足',1:'順暢',2:'車多',3:'壅塞',4:'嚴重壅塞',5:'極度壅塞']",
"format": "int32"
},
"LevelsLevelName": {
"title": "String",
"minLength": 1,
"type": "string",
"description": "壅塞級別文字描述",
"xml": {
"name": "LevelsLevelName"
}
},
"LevelsTopValue": {
"type": "integer",
"description": "門檻值上限, 若壅塞級別為-1, 門檻植上限為-1",
"format": "int32",
"nullable": true
},
"LevelsLowValue": {
"type": "integer",
"description": "門檻值下限, 若壅塞級別為-1, 門檻植下限為-1",
"format": "int32",
"nullable": true
},
"SrcUpdateTime": {
"title": "DateTime",
"type": "string",
"description": "本平台資料更新時間(ISO8601格式:yyyy-MM-ddTHH:mm:sszzz)\n",
"format": "date-time"
},
"UpdateTime": {
"title": "DateTime",
"type": "string",
"description": "來源端平台資料更新時間(ISO8601格式:yyyy-MM-ddTHH:mm:sszzz)\n",
"format": "date-time"
},
"InfoTime": {
"title": "DateTime",
"type": "string",
"description": "資料代表時間(ISO8601格式:yyyy-MM-ddTHH:mm:sszzz)",
"format": "date-time"
},
"InfoDate": {
"title": "String",
"minLength": 1,
"type": "string",
"description": "資料代表日期(格式:yyyy-MM-dd)",
"xml": {
"name": "InfoDate"
}
}
},
"additionalProperties": false,
"xml": {
"name": "CongestionLevel"
}
},
"PTXPlus.Service.DTO.Historical.Specification.Traffic.V2.CSV.CongestionLevel22": {
"$ref": "#/components/schemas/PTXPlus.Service.DTO.Historical.Specification.Traffic.V2.CSV.CongestionLevel"
},
"PTXPlus.Service.DTO.Historical.Specification.Traffic.V2.JSON.LiveTraffic": {
"title": "LiveTraffic",
"required": [
"AuthorityCode",
"CongestionLevel",
"CongestionLevelID",
"DataCollectTime",
"DataSources",
"InfoDate",
"InfoTime",
"SrcUpdateTime",
"TravelSpeed",
"TravelTime",
"UpdateTime"
],
"type": "object",
"properties": {
"SectionID": {
"title": "String",
"type": "string",
"description": "機關發布路段代碼",
"nullable": true,
"xml": {
"name": "SectionID"
}
},
"AuthorityCode": {
"title": "String",
"minLength": 1,
"type": "string",
"description": "業管機關簡碼",
"xml": {
"name": "AuthorityCode"
}
},
"SubAuthorityCode": {
"title": "String",
"type": "string",
"description": "業管子機關簡碼\n",
"nullable": true,
"xml": {
"name": "SubAuthorityCode"
}
},
"LinkIDs": {
"title": "LinkIDItem[]",
"type": "array",
"items": {
"$ref": "#/components/schemas/PTXPlus.Service.DTO.Historical.Specification.Traffic.V2.Commons.LinkIDItem"
},
"description": "機關基礎路段代碼集合",
"nullable": true,
"xml": {
"name": "LinkIDItem[]"
}
},
"TravelTime": {
"title": "Int32",
"type": "integer",
"description": "路段平均旅行時間, 單位:秒, 若壅塞級別為-1, 則為-1",
"format": "int32"
},
"TravelSpeed": {
"title": "Double",
"type": "number",
"description": "路段平均旅行速度, 單位:KM/Hr, 若壅塞級別為-1, 則為-1",
"format": "double"
},
"CongestionLevelID": {
"title": "String",
"minLength": 1,
"type": "string",
"description": "壅塞水準組別代碼",
"xml": {
"name": "CongestionLevelID"
}
},
"CongestionLevel": {
"title": "String",
"minLength": 1,
"type": "string",
"description": "壅塞級別, -99=資料異常, -1=道路封閉",
"xml": {
"name": "CongestionLevel"
}
},
"DataSources": {
"title": "DataSources",
"allOf": [
{
"$ref": "#/components/schemas/PTXPlus.Service.DTO.Historical.Specification.Traffic.V2.JSON.DataSources"
}
],
"description": "即時路況資訊來源種類",
"xml": {
"name": "DataSources"
}
},
"DataCollectTime": {
"title": "DateTime",
"type": "string",
"description": "資料蒐集時間(ISO8601格式:yyyy-MM-ddTHH:mm:ss zzz)",
"format": "date-time"
},
"SrcUpdateTime": {
"title": "DateTime",
"type": "string",
"description": "本平台資料更新時間(ISO8601格式:yyyy-MM-ddTHH:mm:sszzz)\n",
"format": "date-time"
},
"UpdateTime": {
"title": "DateTime",
"type": "string",
"description": "來源端平台資料更新時間(ISO8601格式:yyyy-MM-ddTHH:mm:sszzz)\n",
"format": "date-time"
},
"InfoTime": {
"title": "DateTime",
"type": "string",
"description": "資料代表時間(ISO8601格式:yyyy-MM-ddTHH:mm:sszzz)",
"format": "date-time"
},
"InfoDate": {
"title": "String",
"minLength": 1,
"type": "string",
"description": "資料代表日期(格式:yyyy-MM-dd)",
"xml": {
"name": "InfoDate"
}
}
},
"additionalProperties": false,
"xml": {
"name": "LiveTraffic"
}
},
"PTXPlus.Service.DTO.Historical.Specification.Traffic.V2.JSON.LiveTraffic23": {
"$ref": "#/components/schemas/PTXPlus.Service.DTO.Historical.Specification.Traffic.V2.JSON.LiveTraffic"
},
"PTXPlus.Service.DTO.Historical.Specification.Traffic.V2.JSON.DataSources": {
"title": "DataSources",
"required": [
"HasAVI",
"HasCVP",
"HasETAG",
"HasGVP",
"HasHistorical",
"HasOthers",
"HasVD"
],
"type": "object",
"properties": {
"HasHistorical": {
"title": "Int32",
"type": "integer",
"description": "是否包含歷史資料 : [0:'不包含',1:'包含']",
"format": "int32"
},
"HasVD": {
"title": "Int32",
"type": "integer",
"description": "是否包含VD資料(車輛偵測器) : [0:'不包含',1:'包含']",
"format": "int32"
},
"HasAVI": {
"title": "Int32",
"type": "integer",
"description": "是否包含AVI資料(自動車輛辨識) : [0:'不包含',1:'包含']",
"format": "int32"
},
"HasETAG": {
"title": "Int32",
"type": "integer",
"description": "是否包含ETag資料(eTag電子辨識) : [0:'不包含',1:'包含']",
"format": "int32"
},
"HasGVP": {
"title": "Int32",
"type": "integer",
"description": "是否包含GVP資料(GPS Vehicle Probe) : [0:'不包含',1:'包含']",
"format": "int32"
},
"HasCVP": {
"title": "Int32",
"type": "integer",
"description": "是否包含CVP資料(Cellular Vehicle Probe) : [0:'不包含',1:'包含']",
"format": "int32"
},
"HasOthers": {
"title": "Int32",
"type": "integer",
"description": "是否包含其他多元路況資料 : [0:'不包含',1:'包含']",
"format": "int32"
}
},
"additionalProperties": false,
"xml": {
"name": "DataSources"
}
},
"PTXPlus.Service.DTO.Historical.Specification.Traffic.V2.CSV.LiveTraffic": {
"title": "LiveTraffic",
"required": [
"AuthorityCode",
"CongestionLevel",
"CongestionLevelID",
"DataCollectTime",
"DataSourcesHasAVI",
"DataSourcesHasCVP",
"DataSourcesHasETAG",
"DataSourcesHasGVP",
"DataSourcesHasHistorical",
"DataSourcesHasOthers",
"DataSourcesHasVD",
"InfoDate",
"InfoTime",
"SrcUpdateTime",
"TravelSpeed",
"TravelTime",
"UpdateTime"
],
"type": "object",
"properties": {
"SectionID": {
"title": "String",
"type": "string",
"description": "機關發布路段代碼",
"nullable": true,
"xml": {
"name": "SectionID"
}
},
"AuthorityCode": {
"title": "String",
"minLength": 1,
"type": "string",
"description": "業管機關簡碼",
"xml": {
"name": "AuthorityCode"
}
},
"SubAuthorityCode": {
"title": "String",
"type": "string",
"description": "業管子機關簡碼\n",
"nullable": true,
"xml": {
"name": "SubAuthorityCode"
}
},
"LinkIDsLinkIDs": {
"title": "String",
"type": "string",
"description": "基礎路段代碼",
"nullable": true,
"xml": {
"name": "LinkIDsLinkIDs"
}
},
"TravelTime": {
"title": "Int32",
"type": "integer",
"description": "路段平均旅行時間, 單位:秒, 若壅塞級別為-1, 則為-1",
"format": "int32"
},
"TravelSpeed": {
"title": "Double",
"type": "number",
"description": "路段平均旅行速度, 單位:KM/Hr, 若壅塞級別為-1, 則為-1",
"format": "double"
},
"CongestionLevelID": {
"title": "String",
"minLength": 1,
"type": "string",
"description": "壅塞水準組別代碼",
"xml": {
"name": "CongestionLevelID"
}
},
"CongestionLevel": {
"title": "String",
"minLength": 1,
"type": "string",
"description": "壅塞級別, -99=資料異常, -1=道路封閉",
"xml": {
"name": "CongestionLevel"
}
},
"DataSourcesHasHistorical": {
"title": "Int32",
"type": "integer",
"description": "是否包含歷史資料 : [0:'不包含',1:'包含']",
"format": "int32"
},
"DataSourcesHasVD": {
"title": "Int32",
"type": "integer",
"description": "是否包含VD資料(車輛偵測器) : [0:'不包含',1:'包含']",
"format": "int32"
},
"DataSourcesHasAVI": {
"title": "Int32",
"type": "integer",
"description": "是否包含AVI資料(自動車輛辨識) : [0:'不包含',1:'包含']",
"format": "int32"
},
"DataSourcesHasETAG": {
"title": "Int32",
"type": "integer",
"description": "是否包含ETag資料(eTag電子辨識) : [0:'不包含',1:'包含']",
"format": "int32"
},
"DataSourcesHasGVP": {
"title": "Int32",
"type": "integer",
"description": "是否包含GVP資料(GPS Vehicle Probe) : [0:'不包含',1:'包含']",
"format": "int32"
},
"DataSourcesHasCVP": {
"title": "Int32",
"type": "integer",
"description": "是否包含CVP資料(Cellular Vehicle Probe) : [0:'不包含',1:'包含']",
"format": "int32"
},
"DataSourcesHasOthers": {
"title": "Int32",
"type": "integer",
"description": "是否包含其他多元路況資料 : [0:'不包含',1:'包含']",
"format": "int32"
},
"DataCollectTime": {
"title": "DateTime",
"type": "string",
"description": "資料蒐集時間(ISO8601格式:yyyy-MM-ddTHH:mm:ss zzz)",
"format": "date-time"
},
"SrcUpdateTime": {
"title": "DateTime",
"type": "string",
"description": "本平台資料更新時間(ISO8601格式:yyyy-MM-ddTHH:mm:sszzz)\n",
"format": "date-time"
},
"UpdateTime": {
"title": "DateTime",
"type": "string",
"description": "來源端平台資料更新時間(ISO8601格式:yyyy-MM-ddTHH:mm:sszzz)\n",
"format": "date-time"
},
"InfoTime": {
"title": "DateTime",
"type": "string",
"description": "資料代表時間(ISO8601格式:yyyy-MM-ddTHH:mm:sszzz)",
"format": "date-time"
},
"InfoDate": {
"title": "String",
"minLength": 1,
"type": "string",
"description": "資料代表日期(格式:yyyy-MM-dd)",
"xml": {
"name": "InfoDate"
}
}
},
"additionalProperties": false,
"xml": {
"name": "LiveTraffic"
}
},
"PTXPlus.Service.DTO.Historical.Specification.Traffic.V2.CSV.LiveTraffic24": {
"$ref": "#/components/schemas/PTXPlus.Service.DTO.Historical.Specification.Traffic.V2.CSV.LiveTraffic"
}
},
"securitySchemes": {
"TDX": {
"type": "oauth2",
"description": "TDX會員可至【會員專區-資料服務-服務金鑰】功能頁面,從預設金鑰(或建立新的金鑰)取得Client Id和Client Secret資訊,分別輸入至下方client_id和client_secret欄位、按下Authorize按鈕,即可開始於Swagger介面呼叫TDX API。",
"flows": {
"clientCredentials": {
"tokenUrl": "https://tdx.transportdata.tw/auth/realms/TDXConnect/protocol/openid-connect/token",
"scopes": { }
}
}
}
}
},
"security": [
{
"TDX": [ ]
}
],
"tags": [
{
"name": "Traffic-City",
"description": "縣市即時路況"
},
{
"name": "Traffic-Freeway",
"description": "高速公路即時路況"
},
{
"name": "Traffic-Highway",
"description": "省道即時路況"
}
]
}