| java.lang.Object | ||
| ↳ | com.carto.geocoding.ReverseGeocodingService | |
| ↳ | com.carto.geocoding.PeliasOnlineReverseGeocodingService | |
An online reverse geocoding service that uses Mapzen Pelias geocoder.
As the class connects to an external (non-CARTO) service, this class is provided "as-is",
future changes from the service provider may not be compatible with the implementation.
Geocoding and reverse geocoding perform network requests and must be executed in non-UI background thread.
Be sure to read the Terms and Conditions of your Pelias service provider to see if the
service is available for your application.
Note: this class is experimental and may change or even be removed in future SDK versions.
| Public Constructors | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
|
PeliasOnlineReverseGeocodingService(String apiKey)
Constructs a new instance of the PeliasOnlineReverseGeocodingService given API key.
| |||||||||||
| Public Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| GeocodingResultVector |
calculateAddresses(ReverseGeocodingRequest request)
Calculates matching addresses from the specified reverse geocoding request.
| ||||||||||
| synchronized void | delete() | ||||||||||
| String |
getCustomServiceURL()
Returns the custom backend service URL.
| ||||||||||
| String |
getLanguage()
Returns the language of the expected results.
| ||||||||||
| void |
setCustomServiceURL(String serviceURL)
Sets the custom backend service URL.
| ||||||||||
| void |
setLanguage(String lang)
Sets the language of the expected results.
| ||||||||||
|
[Expand]
Inherited Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
From class
com.carto.geocoding.ReverseGeocodingService
| |||||||||||
From class
java.lang.Object
| |||||||||||
Constructs a new instance of the PeliasOnlineReverseGeocodingService given API key.
| apiKey | The API key to use (registered with Mapzen). |
|---|
Calculates matching addresses from the specified reverse geocoding request.
| request | The reverse geocoding request to use. |
|---|
| IOException |
|---|
Returns the custom backend service URL.
Returns the language of the expected results.
Sets the custom backend service URL.
The custom URL may contain tag "{api_key}" which will be substituted with the set API key.
| serviceURL | The custom backend service URL to use. If this is empty, then the default service is used. |
|---|
Sets the language of the expected results.
| lang | The language to use as ISO 639-1 code. Empty string can be used for default language. |
|---|