simplify abstract method
- List<
GeoCoordinates> polyline, - PolylineSimplifierOptions simplificationParameters,
- PolylineSimplificationCallback callback
Reduces the number of points in the input polyline.
Does this by removing points which are not significant according to the passed PolylineSimplifierOptions. Simplification process is performed on the device without connecting to the network and is computationally intensive.
-
polylineInput polyline that should be reduced in size. -
simplificationParametersStrategy, that controls the behavior of the underlying algorithm. -
callbackCallback, which will be invoked on the main thread, when operation is finished.
Returns TaskHandle. Controls an asynchronous operation.
Implementation
TaskHandle simplify(List<GeoCoordinates> polyline, PolylineSimplifierOptions simplificationParameters, PolylineSimplificationCallback callback);