Retrieve surface events restricted to the predefined area of the user

POST {{baseUrl}}/surfaceevents?page=<integer>&size=<integer>

This endpoint returns a set of surface events restricted to the predefined area of the user. The surface events are returned in a paged response. If there is no surface event data in the defined area, an empty list is returned. Note that missing fields in individual surface events are returned as null values. To additionally limit the returned data, a GeoJSON polygon or multi-polygon can be defined as geolocation filter. The GeoJSON filter geometry is defined in the request body. The provided geometry is validated, e.g., it must be a valid GeoJSON polygon or multi-polygon with valid coordinate values. Also, requests containing too complex geometries are rejected for performance reasons. Besides the GeoJSON filter, the surface events can also be filtered by the recent intensity, event type and minimum confidence, and the detection count. If more than one filter is provided, all filters are combined with a logical AND.

Request Params

KeyDatatypeRequiredDescription
pagestringThe page number used for the pagination
sizestringThe size of the response page used for the pagination. The size is given in number of events. If the requested page size exceeds the maximum allowed page size, a validation error is returned.

Request Body

{"geoJson"=>{"type"=>"Polygon", "coordinates"=>[[["<number>", "<number>"], ["<number>", "<number>"], ["<number>", "<number>"], ["<number>", "<number>"]], [["<number>", "<number>"], ["<number>", "<number>"], ["<number>", "<number>"], ["<number>", "<number>"]]], "bbox"=>["<number>", "<number>", "<number>", "<number>"]}, "eventType"=>"<string>", "minConfidence"=>"<float>", "minIntensity"=>"<float>", "maxIntensity"=>"<float>", "minDetectionCount"=>"<number>", "maxDetectionCount"=>"<number>"}

HEADERS

KeyDatatypeRequiredDescription
x-tracking-idstringthe request tracking ID
Content-Typestring
Acceptstring

RESPONSES

status: OK

{&quot;surfaceEvents&quot;:[{&quot;id&quot;:&quot;\u003cuuid\u003e&quot;,&quot;latitude&quot;:&quot;\u003cfloat\u003e&quot;,&quot;longitude&quot;:&quot;\u003cfloat\u003e&quot;,&quot;heading&quot;:&quot;\u003cinteger\u003e&quot;,&quot;recentDetection&quot;:&quot;\u003cdate\u003e&quot;,&quot;recentIntensity&quot;:&quot;\u003cfloat\u003e&quot;,&quot;firstDetection&quot;:&quot;\u003cdate\u003e&quot;,&quot;firstIntensity&quot;:&quot;\u003cfloat\u003e&quot;,&quot;tendency&quot;:&quot;\u003cinteger\u003e&quot;,&quot;detectionCount&quot;:&quot;\u003cinteger\u003e&quot;,&quot;eventTypes&quot;:[{&quot;type&quot;:&quot;\u003cstring\u003e&quot;,&quot;confidence&quot;:&quot;\u003cfloat\u003e&quot;},{&quot;type&quot;:&quot;\u003cstring\u003e&quot;,&quot;confidence&quot;:&quot;\u003cfloat\u003e&quot;}],&quot;laneNumber&quot;:&quot;\u003cinteger\u003e&quot;},{&quot;id&quot;:&quot;\u003cuuid\u003e&quot;,&quot;latitude&quot;:&quot;\u003cfloat\u003e&quot;,&quot;longitude&quot;:&quot;\u003cfloat\u003e&quot;,&quot;heading&quot;:&quot;\u003cinteger\u003e&quot;,&quot;recentDetection&quot;:&quot;\u003cdate\u003e&quot;,&quot;recentIntensity&quot;:&quot;\u003cfloat\u003e&quot;,&quot;firstDetection&quot;:&quot;\u003cdate\u003e&quot;,&quot;firstIntensity&quot;:&quot;\u003cfloat\u003e&quot;,&quot;tendency&quot;:&quot;\u003cinteger\u003e&quot;,&quot;detectionCount&quot;:&quot;\u003cinteger\u003e&quot;,&quot;eventTypes&quot;:[{&quot;type&quot;:&quot;\u003cstring\u003e&quot;,&quot;confidence&quot;:&quot;\u003cfloat\u003e&quot;},{&quot;type&quot;:&quot;\u003cstring\u003e&quot;,&quot;confidence&quot;:&quot;\u003cfloat\u003e&quot;}],&quot;laneNumber&quot;:&quot;\u003cinteger\u003e&quot;}],&quot;page&quot;:{&quot;size&quot;:&quot;\u003cinteger\u003e&quot;,&quot;number&quot;:&quot;\u003cinteger\u003e&quot;,&quot;totalPages&quot;:&quot;\u003cinteger\u003e&quot;,&quot;totalElements&quot;:&quot;\u003clong\u003e&quot;}}