java.lang.Object | ||
↳ | com.carto.geocoding.ReverseGeocodingService | |
↳ | com.carto.geocoding.OSMOfflineReverseGeocodingService |
A reverse geocoding service that uses custom geocoding database files.
Note: this class is experimental and may change or even be removed in future SDK versions.
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
OSMOfflineReverseGeocodingService(String path)
Constructs a new instance of the OSMOfflineReverseGeocodingService given path to the geocoding database.
|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
GeocodingResultVector |
calculateAddresses(ReverseGeocodingRequest request)
Calculates matching addresses from the specified reverse geocoding request.
| ||||||||||
synchronized void | delete() | ||||||||||
String |
getLanguage()
Returns the language of the expected results.
| ||||||||||
void |
setLanguage(String lang)
Sets the language of the expected results.
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
![]() | |||||||||||
![]() |
Constructs a new instance of the OSMOfflineReverseGeocodingService given path to the geocoding database.
path | The full path to the geocoding database file. |
---|
Exception | If the database file could not be opened or read. |
---|---|
IOException |
Calculates matching addresses from the specified reverse geocoding request.
request | The reverse geocoding request to use. |
---|
IOException |
---|
Returns the language of the expected results.
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. |
---|