public class NominatimGeocoderService extends Object implements GeocoderService
| Constructor and Description |
|---|
NominatimGeocoderService(NominatimConfiguration configuration) |
| Modifier and Type | Method and Description |
|---|---|
NominatimConfiguration |
getConfiguration()
Returns configuration of the
GeocoderService. |
String |
getId()
A unique identifier for this
GeocoderService. |
GeocoderResult |
resolveAddress(String address)
Resolves the given address string to valid coordinates.
|
void |
validateConfiguration(Map<String,Object> properties)
Validates the provided configuration properties.
|
public NominatimGeocoderService(NominatimConfiguration configuration)
public String getId()
GeocoderServiceGeocoderService.getId in interface GeocoderServiceGeocoderService.public GeocoderResult resolveAddress(String address) throws GeocoderConfigurationException
GeocoderServiceCoordinates but that makes it hard to distinguish
if there was no valid address or an exception occurred.resolveAddress in interface GeocoderServiceaddress - The address to resolveGeocoderConfigurationExceptionpublic NominatimConfiguration getConfiguration()
GeocoderServiceGeocoderService.getConfiguration in interface GeocoderServicepublic void validateConfiguration(Map<String,Object> properties) throws GeocoderConfigurationException
GeocoderServicevalidateConfiguration in interface GeocoderServiceproperties - to validateGeocoderConfigurationException - in case the configuration is invalid.Copyright © 2022. All rights reserved.