PolylineSimplificationCallback (API Reference)
Interface PolylineSimplificationCallback
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
The method will be called on the main thread when
PolylineSimplifier.simplify(java.util.List<com.here.sdk.core.GeoCoordinates>, com.here.sdk.core.PolylineSimplifier.Options, com.here.sdk.core.PolylineSimplificationCallback) is finished.
-
Method Summary
Modifier and TypeMethodDescriptionvoidonPolylineSimplified(PolylineSimplificationError queryError, List<GeoCoordinates> result) The method will be called on the main thread whenPolylineSimplifier.simplify(java.util.List<com.here.sdk.core.GeoCoordinates>, com.here.sdk.core.PolylineSimplifier.Options, com.here.sdk.core.PolylineSimplificationCallback)is finished.
-
Method Details
-
onPolylineSimplified
void onPolylineSimplified(@Nullable PolylineSimplificationError queryError, @Nullable List<GeoCoordinates> result) The method will be called on the main thread when
PolylineSimplifier.simplify(java.util.List<com.here.sdk.core.GeoCoordinates>, com.here.sdk.core.PolylineSimplifier.Options, com.here.sdk.core.PolylineSimplificationCallback)is finished.- Parameters:
queryError-The optional error, which occurred during simplification.
result-The simplified polyline with number of points less or equal to the input polyline of
PolylineSimplifier.simplify(java.util.List<com.here.sdk.core.GeoCoordinates>, com.here.sdk.core.PolylineSimplifier.Options, com.here.sdk.core.PolylineSimplificationCallback).
-