POST api/Incident/boxsearch
Searches on all incidents since a certain date (of a certain type: optional) within a lat/long box Radius to be supplied in meters
Request Information
URI Parameters
None.
Body Parameters
IncidentBoxSearchCriteria| Name | Description | Type | Additional information |
|---|---|---|---|
| Latitude1 | decimal number |
None. |
|
| Latitude2 | decimal number |
None. |
|
| Longitude1 | decimal number |
None. |
|
| Longitude2 | decimal number |
None. |
|
| DateFrom | date |
None. |
|
| TypeID | integer |
None. |
Request Formats
application/json, text/json
Sample:
{
"Latitude1": 1.1,
"Latitude2": 2.1,
"Longitude1": 3.1,
"Longitude2": 4.1,
"DateFrom": "2026-03-21T11:30:19.5114685+00:00",
"TypeID": 6
}
application/xml, text/xml
Sample:
<IncidentBoxSearchCriteria xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Hub.Server.Models.DTO"> <DateFrom>2026-03-21T11:30:19.5114685+00:00</DateFrom> <Latitude1>1.1</Latitude1> <Latitude2>2.1</Latitude2> <Longitude1>3.1</Longitude1> <Longitude2>4.1</Longitude2> <TypeID>6</TypeID> </IncidentBoxSearchCriteria>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
Collection of IncidentModel| Name | Description | Type | Additional information |
|---|---|---|---|
| ID | integer |
None. |
|
| DateOfIncident | date |
None. |
|
| Area | string |
None. |
|
| Latitude | decimal number |
None. |
|
| Longitude | decimal number |
None. |
|
| GeoAddress |
Address as supplied by either cyclist or google (based on lat/long) |
string |
None. |
| Description |
Incident Description |
string |
None. |
| TypeID | integer |
None. |
|
| TypeDescription | string |
None. |
|
| CreatedBy | integer |
None. |
|
| CreatedDate | date |
None. |
Response Formats
application/json, text/json
Sample:
[
{
"ID": 1,
"DateOfIncident": "2026-03-21T11:30:19.5114685+00:00",
"Area": "sample string 3",
"Latitude": 4.1,
"Longitude": 5.1,
"GeoAddress": "sample string 6",
"Description": "sample string 7",
"TypeID": 8,
"TypeDescription": "sample string 9",
"CreatedBy": 10,
"CreatedDate": "2026-03-21T11:30:19.5114685+00:00"
},
{
"ID": 1,
"DateOfIncident": "2026-03-21T11:30:19.5114685+00:00",
"Area": "sample string 3",
"Latitude": 4.1,
"Longitude": 5.1,
"GeoAddress": "sample string 6",
"Description": "sample string 7",
"TypeID": 8,
"TypeDescription": "sample string 9",
"CreatedBy": 10,
"CreatedDate": "2026-03-21T11:30:19.5114685+00:00"
}
]
application/xml, text/xml
Sample:
<ArrayOfIncidentModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Hub.Server.Models.DTO">
<IncidentModel>
<Area>sample string 3</Area>
<CreatedBy>10</CreatedBy>
<CreatedDate>2026-03-21T11:30:19.5114685+00:00</CreatedDate>
<DateOfIncident>2026-03-21T11:30:19.5114685+00:00</DateOfIncident>
<Description>sample string 7</Description>
<GeoAddress>sample string 6</GeoAddress>
<ID>1</ID>
<Latitude>4.1</Latitude>
<Longitude>5.1</Longitude>
<TypeDescription>sample string 9</TypeDescription>
<TypeID>8</TypeID>
</IncidentModel>
<IncidentModel>
<Area>sample string 3</Area>
<CreatedBy>10</CreatedBy>
<CreatedDate>2026-03-21T11:30:19.5114685+00:00</CreatedDate>
<DateOfIncident>2026-03-21T11:30:19.5114685+00:00</DateOfIncident>
<Description>sample string 7</Description>
<GeoAddress>sample string 6</GeoAddress>
<ID>1</ID>
<Latitude>4.1</Latitude>
<Longitude>5.1</Longitude>
<TypeDescription>sample string 9</TypeDescription>
<TypeID>8</TypeID>
</IncidentModel>
</ArrayOfIncidentModel>