geocodeWithSearchValues method
- Map<
String, String> searchValues, { - GeocodeParameters? parameters,
Geocodes multiline address with parameters and returns candidates.
Executes a geocoding operation to find location candidates for a given multiline address.
Parameters:
searchValues
— Multiline address inputs.parameters
— Geocode method parameters.
Return Value: A Future returning a List of GeocodeResult
Implementation
Future<List<GeocodeResult>> geocodeWithSearchValues(
Map<String, String> searchValues, {
GeocodeParameters? parameters,
}) {
final coreSearchValues = searchValues.toDictionary(
keyType: _ElementType.string,
valueType: _ElementType.string,
);
final taskHandle = _withThrowingErrorHandler((errorHandler) {
return runtimecore.RT_LocatorTask_geocodeWithSearchValuesAndParameters(
_handle,
coreSearchValues._handle,
parameters?._handle ?? ffi.nullptr,
errorHandler,
);
});
return taskHandle.toFuture(
(element) => element.getValueAsList()!,
);
}