queryForIncidentsInCorridor abstract method

TaskHandle queryForIncidentsInCorridor(
  1. GeoCorridor corridorArea,
  2. TrafficIncidentsQueryOptions queryOptions,
  3. TrafficIncidentsQueryCallback callback
)

Asynchronously queries for traffic incidents by a corridor as a filter.

  • corridorArea The corridor box to search for traffic incidents. The maximum length for the corridor is 500000 meters and the maximum GeoCorridor.half_width_in_meters is 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.

  • queryOptions The options which are specific for incidents query.

  • callback It 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);