queryForIncidentsInCorridor abstract method
- GeoCorridor corridorArea,
- TrafficIncidentsQueryOptions queryOptions,
- TrafficIncidentsQueryCallback callback
Asynchronously queries for traffic incidents by a corridor as a filter.
corridorAreaThe corridor box to search for traffic incidents. The maximum length for the corridor is 500000 meters and the maximumGeoCorridor.half_width_in_metersis 5000 meters. If the number of points in corridor is greater than 300 then request is split into smaller ones and results are aggregated into single response, this will result in multiple requests to the backend. This process does not change a shape of the corridor.
To reduce number of points in the corridor use PolylineSimplifier.
If no GeoCorridor.half_width_in_meters is specified, the default value is used. The default value is 30 meters.
-
queryOptionsThe options which are specific for incidents query. -
callbackIt is always invoked on the main thread.
Returns TaskHandle. Handle that will be used to manipulate the execution of the task.
Implementation
TaskHandle queryForIncidentsInCorridor(GeoCorridor corridorArea, TrafficIncidentsQueryOptions queryOptions, TrafficIncidentsQueryCallback callback);