CrossingTime-GroupByHourWeekDayBA
TestedPOST
https://kfca.sa/IntAPI/api/CrossingTime/GroupByHourWeekDayBA/This API provides hourly traffic statistics for a King Fahd Causeway.
Each entry in the JSON array includes:
hour: The hour of the day (0-23) for which the data is recorded.
average: The average traffic count or flow during that hour.
maximum: The maximum traffic count or flow recorded during that hour.
minimum: The minimum traffic count or flow recorded during that hour.
statusColor: A color code representing the traffic status, where "G" stands for "Good."
This API helps users access detailed hourly traffic data, including average, maximum, and minimum traffic counts, along with a status indicator for each hour. This information can be used for traffic analysis and monitoring purposes.
Request
A string representing the start date for the data query. This parameter is required. Example: "20190101" (January 1, 2019).
A string representing the end date for the data query. This parameter is required. Example: "20240629" (June 29, 2024).
A string representing the day of the week for the data query. This parameter is required. Example: "7" (Sunday, assuming the week starts on Monday).
Request samples
Responses
The hour of the day (0-23) for which the data is recorded.
The average traffic count or flow during that hour.
The maximum traffic count or flow recorded during that hour.
The minimum traffic count or flow recorded during that hour.
A color code representing the traffic status, where "G" stands for "Good."
[
{
"hour": "0",
"average": "22",
"maximum": "143",
"minimum": "7",
"statusColor": "Y"
},
{
"hour": "1",
"average": "21",
"maximum": "146",
"minimum": "7",
"statusColor": "Y"
},
{
"hour": "2",
"average": "20",
"maximum": "151",
"minimum": "7",
"statusColor": "G"
},
{
"hour": "3",
"average": "18",
"maximum": "151",
"minimum": "8",
"statusColor": "G"
},
{
"hour": "4",
"average": "14",
"maximum": "94",
"minimum": "8",
"statusColor": "G"
},
{
"hour": "5",
"average": "13",
"maximum": "64",
"minimum": "7",
"statusColor": "G"
},
{
"hour": "6",
"average": "11",
"maximum": "48",
"minimum": "7",
"statusColor": "G"
},
{
"hour": "7",
"average": "11",
"maximum": "21",
"minimum": "7",
"statusColor": "G"
},
{
"hour": "8",
"average": "11",
"maximum": "45",
"minimum": "7",
"statusColor": "G"
},
{
"hour": "9",
"average": "12",
"maximum": "47",
"minimum": "8",
"statusColor": "G"
},
{
"hour": "10",
"average": "14",
"maximum": "42",
"minimum": "8",
"statusColor": "G"
},
{
"hour": "11",
"average": "14",
"maximum": "44",
"minimum": "9",
"statusColor": "G"
},
{
"hour": "12",
"average": "16",
"maximum": "56",
"minimum": "8",
"statusColor": "G"
},
{
"hour": "13",
"average": "18",
"maximum": "64",
"minimum": "8",
"statusColor": "G"
},
{
"hour": "14",
"average": "21",
"maximum": "74",
"minimum": "8",
"statusColor": "Y"
},
{
"hour": "15",
"average": "22",
"maximum": "107",
"minimum": "8",
"statusColor": "Y"
},
{
"hour": "16",
"average": "22",
"maximum": "109",
"minimum": "8",
"statusColor": "Y"
},
{
"hour": "17",
"average": "22",
"maximum": "110",
"minimum": "8",
"statusColor": "Y"
},
{
"hour": "18",
"average": "21",
"maximum": "132",
"minimum": "7",
"statusColor": "Y"
},
{
"hour": "19",
"average": "20",
"maximum": "120",
"minimum": "8",
"statusColor": "G"
},
{
"hour": "20",
"average": "19",
"maximum": "151",
"minimum": "8",
"statusColor": "G"
},
{
"hour": "21",
"average": "18",
"maximum": "123",
"minimum": "8",
"statusColor": "G"
},
{
"hour": "22",
"average": "18",
"maximum": "107",
"minimum": "6",
"statusColor": "G"
},
{
"hour": "23",
"average": "17",
"maximum": "132",
"minimum": "6",
"statusColor": "G"
}
]