Package slash.navigation.geocoding
Interface GeocodingService
- All Known Implementing Classes:
AutomaticGeocodingService,BaseGeocodingService,GeoNamesService,GoogleGeocodingService,MapsforgeMapGeocodingService,MapsforgePoiGeocodingService,NominatimService,PhotonService
public interface GeocodingService
Interface for a service that translates addresses into geographic coordinates
and a geographic coordinate to an address.
- Author:
- Christian Pesch
-
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.booleanboolean
-
Method Details
-
getName
String getName() -
isDownload
boolean isDownload() -
isOverQueryLimit
boolean isOverQueryLimit() -
getPositionsFor
List<GeocodingResult> getPositionsFor(String address) throws IOException, ServiceUnavailableException Retrieves a list ofGeocodingResults for a given address.- Parameters:
address- the address to geocode- Returns:
- a list of
GeocodingResults for the given address - Throws:
ServiceUnavailableException- if the service is overloadedIOException- if the request fails
-