CrossingTime-GroupByHourWeekDaySA
TestedPOST
https://kfca.sa/IntAPI/api/CrossingTime/GroupByHourWeekDaySA/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": "15",
"maximum": "40",
"minimum": "7",
"statusColor": "G"
},
{
"hour": "1",
"average": "14",
"maximum": "39",
"minimum": "7",
"statusColor": "G"
},
{
"hour": "2",
"average": "13",
"maximum": "21",
"minimum": "7",
"statusColor": "G"
},
{
"hour": "3",
"average": "13",
"maximum": "21",
"minimum": "7",
"statusColor": "G"
},
{
"hour": "4",
"average": "13",
"maximum": "22",
"minimum": "8",
"statusColor": "G"
},
{
"hour": "5",
"average": "13",
"maximum": "21",
"minimum": "8",
"statusColor": "G"
},
{
"hour": "6",
"average": "12",
"maximum": "19",
"minimum": "8",
"statusColor": "G"
},
{
"hour": "7",
"average": "13",
"maximum": "23",
"minimum": "7",
"statusColor": "G"
},
{
"hour": "8",
"average": "13",
"maximum": "51",
"minimum": "7",
"statusColor": "G"
},
{
"hour": "9",
"average": "16",
"maximum": "58",
"minimum": "7",
"statusColor": "G"
},
{
"hour": "10",
"average": "18",
"maximum": "62",
"minimum": "7",
"statusColor": "G"
},
{
"hour": "11",
"average": "18",
"maximum": "65",
"minimum": "8",
"statusColor": "G"
},
{
"hour": "12",
"average": "18",
"maximum": "62",
"minimum": "8",
"statusColor": "G"
},
{
"hour": "13",
"average": "19",
"maximum": "58",
"minimum": "8",
"statusColor": "G"
},
{
"hour": "14",
"average": "19",
"maximum": "56",
"minimum": "9",
"statusColor": "G"
},
{
"hour": "15",
"average": "18",
"maximum": "54",
"minimum": "8",
"statusColor": "G"
},
{
"hour": "16",
"average": "17",
"maximum": "54",
"minimum": "8",
"statusColor": "G"
},
{
"hour": "17",
"average": "17",
"maximum": "55",
"minimum": "8",
"statusColor": "G"
},
{
"hour": "18",
"average": "16",
"maximum": "53",
"minimum": "8",
"statusColor": "G"
},
{
"hour": "19",
"average": "15",
"maximum": "47",
"minimum": "7",
"statusColor": "G"
},
{
"hour": "20",
"average": "15",
"maximum": "51",
"minimum": "7",
"statusColor": "G"
},
{
"hour": "21",
"average": "15",
"maximum": "39",
"minimum": "7",
"statusColor": "G"
},
{
"hour": "22",
"average": "14",
"maximum": "24",
"minimum": "7",
"statusColor": "G"
},
{
"hour": "23",
"average": "14",
"maximum": "22",
"minimum": "8",
"statusColor": "G"
}
]