public class GoogleGeocoderService extends Object implements GeocoderService
Constructor and Description |
---|
GoogleGeocoderService(GoogleConfiguration configuration) |
Modifier and Type | Method and Description |
---|---|
GoogleConfiguration |
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 GoogleGeocoderService(GoogleConfiguration configuration)
public String getId()
GeocoderService
GeocoderService
.getId
in interface GeocoderService
GeocoderService
.public GeocoderResult resolveAddress(String address) throws GeocoderConfigurationException
GeocoderService
Coordinates
but that makes it hard to distinguish
if there was no valid address or an exception occurred.resolveAddress
in interface GeocoderService
address
- The address to resolveGeocoderConfigurationException
public GoogleConfiguration getConfiguration()
GeocoderService
GeocoderService
.getConfiguration
in interface GeocoderService
public void validateConfiguration(Map<String,Object> properties) throws GeocoderConfigurationException
GeocoderService
validateConfiguration
in interface GeocoderService
properties
- to validateGeocoderConfigurationException
- in case the configuration is invalid.Copyright © 2021. All rights reserved.