POST api/Incident/search

Searches on all incidents since a certain date (of a certain type: optional) within a radius of the provided point Radius to be supplied in meters

Request Information

URI Parameters

None.

Body Parameters

IncidentSearchCriteria
NameDescriptionTypeAdditional information
Latitude

decimal number

None.

Longitude

decimal number

None.

DateFrom

date

None.

RadiusInMeters

integer

None.

TypeID

integer

None.

Request Formats

application/json, text/json

Sample:
{
  "Latitude": 1.1,
  "Longitude": 2.1,
  "DateFrom": "2025-09-05T16:03:42.2517825+00:00",
  "RadiusInMeters": 4,
  "TypeID": 5
}

application/xml, text/xml

Sample:
<IncidentSearchCriteria xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Hub.Server.Models.DTO">
  <DateFrom>2025-09-05T16:03:42.2517825+00:00</DateFrom>
  <Latitude>1.1</Latitude>
  <Longitude>2.1</Longitude>
  <RadiusInMeters>4</RadiusInMeters>
  <TypeID>5</TypeID>
</IncidentSearchCriteria>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

Collection of IncidentModel
NameDescriptionTypeAdditional 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": "2025-09-05T16:03:42.2517825+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": "2025-09-05T16:03:42.2517825+00:00"
  },
  {
    "ID": 1,
    "DateOfIncident": "2025-09-05T16:03:42.2517825+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": "2025-09-05T16:03:42.2517825+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>2025-09-05T16:03:42.2517825+00:00</CreatedDate>
    <DateOfIncident>2025-09-05T16:03:42.2517825+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>2025-09-05T16:03:42.2517825+00:00</CreatedDate>
    <DateOfIncident>2025-09-05T16:03:42.2517825+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>