Interface CalculateIsolineCallback

  • 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 CalculateIsolineCallback

    A function which is called by the RoutingEngine after isoline calculation has completed. It is always called on the main thread. The first argument is the error in case of a failure. It is null for an operation that succeeds. The second argument holds a list of calculated isolines. The list is null in case of an error. The size of the list matches the size of the provided sdk.routing.IsolineOptions.range_values: For each range limit, one isoline is calculated.

    • Method Detail

      • onIsolineCalculated

        void onIsolineCalculated​(@Nullable
                                 RoutingError routingError,
                                 @Nullable
                                 java.util.List<Isoline> isolines)

        A function which is called by the RoutingEngine after isoline calculation has completed. It is always called on the main thread. The first argument is the error in case of a failure. It is null for an operation that succeeds. The second argument holds a list of calculated isolines. The list is null in case of an error. The size of the list matches the size of the provided sdk.routing.IsolineOptions.range_values: For each range limit, one isoline is calculated.

        Parameters:
        routingError -

        The error in case of a failure. It is null for an operation that succeeds.

        isolines -

        Holds a list of calculated isolines. The list is null in case of an error.