queryForFlowInCorridor method - TrafficEngine class - traffic library - Dart API
queryForFlowInCorridor
queryForFlowInCorridor abstract method
- GeoCorridor corridorArea,
- TrafficFlowQueryOptions queryOptions,
- 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.
corridorAreaThe corridor box to search for traffic flow. The maximum length for the corridor is 500000 meters and the maximumGeoCorridor.half_width_in_metersis 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.
-
queryOptionsThe options which are specific for flow 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 queryForFlowInCorridor(GeoCorridor corridorArea, TrafficFlowQueryOptions queryOptions, TrafficFlowQueryCallback callback);