CalculateIsolineCallback (API Reference)
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.
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 Summary
Modifier and TypeMethodDescriptionvoidonIsolineCalculated(RoutingError routingError, List<Isoline> isolines) A function which is called by the RoutingEngine after isoline calculation has completed.
-
Method Details
-
onIsolineCalculated
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
nullfor an operation that succeeds. The second argument holds a list of calculated isolines. The list isnullin 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
nullfor an operation that succeeds.isolines-Holds a list of calculated isolines. The list is
nullin case of an error.
-