queryForFlowInCorridor abstract method

TaskHandle queryForFlowInCorridor(
  1. GeoCorridor corridorArea,
  2. TrafficFlowQueryOptions queryOptions,
  3. TrafficFlowQueryCallback callback
)

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

Note: This is a beta release of this feature, so there could be a few bugs and unexpected behaviors. Related APIs may change for new releases without a deprecation process.

  • corridorArea The corridor box to search for traffic flow. The maximum length for the corridor is 500000 meters and the maximum GeoCorridor.half_width_in_meters is 5000 meters.

Maximum number of points in the corridor is 300.

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 flow 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 queryForFlowInCorridor(GeoCorridor corridorArea, TrafficFlowQueryOptions queryOptions, TrafficFlowQueryCallback callback);