geocodeWithSuggestResult method
- SuggestResult suggestResult, {
- GeocodeParameters? parameters,
Geocodes suggest with parameters and returns candidates.
Executes geocoding based on result of suggestion.
Parameters:
suggestResult
— Suggest method result.parameters
— Geocode parameters.
Return Value: A Future returning a List of GeocodeResult
Implementation
Future<List<GeocodeResult>> geocodeWithSuggestResult(
SuggestResult suggestResult, {
GeocodeParameters? parameters,
}) {
final taskHandle = _withThrowingErrorHandler((errorHandler) {
return runtimecore.RT_LocatorTask_geocodeWithSuggestResultAndParameters(
_handle,
suggestResult._handle,
parameters?._handle ?? ffi.nullptr,
errorHandler,
);
});
return taskHandle.toFuture(
(element) => element.getValueAsList()!,
);
}