Class NominatimGeocoderService
- java.lang.Object
-
- org.opennms.features.geocoder.nominatim.NominatimGeocoderService
-
- All Implemented Interfaces:
GeocoderService
public class NominatimGeocoderService extends java.lang.Object implements GeocoderService
-
-
Constructor Summary
Constructors Constructor Description NominatimGeocoderService(NominatimConfiguration configuration)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description NominatimConfigurationgetConfiguration()Returns configuration of theGeocoderService.java.lang.StringgetId()A unique identifier for thisGeocoderService.GeocoderResultresolveAddress(java.lang.String address)Resolves the given address string to valid coordinates.voidvalidateConfiguration(java.util.Map<java.lang.String,java.lang.Object> properties)Validates the provided configuration properties.
-
-
-
Constructor Detail
-
NominatimGeocoderService
public NominatimGeocoderService(NominatimConfiguration configuration)
-
-
Method Detail
-
getId
public java.lang.String getId()
Description copied from interface:GeocoderServiceA unique identifier for thisGeocoderService.- Specified by:
getIdin interfaceGeocoderService- Returns:
- The unique identifier for this
GeocoderService.
-
resolveAddress
public GeocoderResult resolveAddress(java.lang.String address) throws GeocoderConfigurationException
Description copied from interface:GeocoderServiceResolves the given address string to valid coordinates. Originally it returned only theCoordinatesbut that makes it hard to distinguish if there was no valid address or an exception occurred.- Specified by:
resolveAddressin interfaceGeocoderService- Parameters:
address- The address to resolve- Returns:
- The result of the resolution
- Throws:
GeocoderConfigurationException
-
getConfiguration
public NominatimConfiguration getConfiguration()
Description copied from interface:GeocoderServiceReturns configuration of theGeocoderService.- Specified by:
getConfigurationin interfaceGeocoderService- Returns:
- configuration.
-
validateConfiguration
public void validateConfiguration(java.util.Map<java.lang.String,java.lang.Object> properties) throws GeocoderConfigurationExceptionDescription copied from interface:GeocoderServiceValidates the provided configuration properties.- Specified by:
validateConfigurationin interfaceGeocoderService- Parameters:
properties- to validate- Throws:
GeocoderConfigurationException- in case the configuration is invalid.
-
-