queryForIncidentsInBox abstract method

TaskHandle queryForIncidentsInBox(
  1. GeoBox boxArea,
  2. TrafficIncidentsQueryOptions queryOptions,
  3. TrafficIncidentsQueryCallback callback
)

Asynchronously queries for traffic incidents using a bounding box as a filter.

  • boxArea The bounding box area to search for traffic incidents. The maximum width and height for a bounding box filter is 1 degree.

  • 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 queryForIncidentsInBox(GeoBox boxArea, TrafficIncidentsQueryOptions queryOptions, TrafficIncidentsQueryCallback callback);