Class AutomaticGeocodingService
java.lang.Object
slash.navigation.geocoding.BaseGeocodingService
slash.navigation.converter.gui.helpers.AutomaticGeocodingService
- All Implemented Interfaces:
GeocodingService
A geocoding service that tries to find the best available geocoding service.
- Author:
- Christian Pesch
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetAddressFor(NavigationPosition position) Retrieves an address for a givenNavigationPosition.getName()getPositionsFor(String address) Retrieves a list ofGeocodingResults for a given address.booleanbooleanMethods inherited from class slash.navigation.geocoding.BaseGeocodingService
asGeocodingResults, asGeocodingResults
-
Constructor Details
-
Method Details
-
getName
-
isDownload
public boolean isDownload() -
isOverQueryLimit
public boolean isOverQueryLimit() -
getPositionsFor
public List<GeocodingResult> getPositionsFor(String address) throws IOException, ServiceUnavailableException Description copied from interface:GeocodingServiceRetrieves a list ofGeocodingResults for a given address.- Parameters:
address- the address to geocode- Returns:
- a list of
GeocodingResults for the given address - Throws:
IOException- if the request failsServiceUnavailableException- if the service is overloaded
-