GET v1/entity-counting/counting-per-hour?day={day}&monitoringPointId={monitoringPointId}&type={type}&direction={direction}
Get entity counting values per hour by day.
Request Information
URI Parameters
| Name | Description | Type | Additional information |
|---|---|---|---|
| day |
Day |
date |
Required |
| monitoringPointId |
MonitoringPointId Id |
integer |
Required |
| type | CountingType |
None. |
|
| direction |
Road Direction parameters |
CountingDirection |
None. |
Body Parameters
None.
Response Information
Resource Description
Return total counting values per hour by day for entity (monitoring point or other sensor)
Collection of CountingStatsModel| Name | Description | Type | Additional information |
|---|---|---|---|
| Id | integer |
None. |
|
| Year | integer |
None. |
|
| Month | integer |
None. |
|
| Day | integer |
None. |
|
| Hour | integer |
None. |
|
| Type | CountingType |
None. |
|
| Direction | CountingDirection |
None. |
|
| Total | integer |
None. |
|
| MonitoringPointId | integer |
None. |
Response Formats
application/json, text/json
Sample:
[
{
"Id": 1,
"Year": 2,
"Month": 1,
"Day": 1,
"Hour": 1,
"Type": 1,
"Direction": 1,
"Total": 3,
"MonitoringPointId": 4
},
{
"Id": 1,
"Year": 2,
"Month": 1,
"Day": 1,
"Hour": 1,
"Type": 1,
"Direction": 1,
"Total": 3,
"MonitoringPointId": 4
}
]
application/xml, text/xml
Sample:
<ArrayOfCountingStatsModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/I9P.SmartCity.API.Models">
<CountingStatsModel>
<Day>1</Day>
<Direction>In</Direction>
<Hour>1</Hour>
<Id>1</Id>
<MonitoringPointId>4</MonitoringPointId>
<Month>1</Month>
<Total>3</Total>
<Type>Person</Type>
<Year>2</Year>
</CountingStatsModel>
<CountingStatsModel>
<Day>1</Day>
<Direction>In</Direction>
<Hour>1</Hour>
<Id>1</Id>
<MonitoringPointId>4</MonitoringPointId>
<Month>1</Month>
<Total>3</Total>
<Type>Person</Type>
<Year>2</Year>
</CountingStatsModel>
</ArrayOfCountingStatsModel>