simplify abstract method

TaskHandle simplify(
  1. List<GeoCoordinates> polyline,
  2. PolylineSimplifierOptions simplificationParameters,
  3. 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.

  • polyline Input polyline that should be reduced in size.

  • simplificationParameters Strategy, that controls the behavior of the underlying algorithm.

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