Interface PolylineSimplificationCallback
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.
@FunctionalInterface public interface PolylineSimplificationCallbackThe 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
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidonPolylineSimplified(PolylineSimplificationError queryError, java.util.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 Detail
-
onPolylineSimplified
void onPolylineSimplified(@Nullable PolylineSimplificationError queryError, @Nullable java.util.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).
-
-