public class MapquestGeocoderService extends Object implements GeocoderService
Constructor and Description |
---|
MapquestGeocoderService(MapquestConfiguration configuration) |
Modifier and Type | Method and Description |
---|---|
GeocoderConfiguration |
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 MapquestGeocoderService(MapquestConfiguration 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 GeocoderConfiguration 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.