public final class GeocodingClient extends ClientBase<com.here.mobility.sdk.map.geocoding.GeocodingNetworkClient>
client
Modifier and Type | Method and Description |
---|---|
ResponseFuture<GeocodingResponse> |
geocode(GeocodingRequest request)
Sends the given geocoding request.
|
ResponseFuture<Address> |
getAddressDetails(GeocodingResult geocodingResult,
String languageCode)
Sends a request for the address data of the given
GeocodingResult , in the given
preferred language. |
static GeocodingClient |
newInstance()
Creates a new
GeocodingNetworkClient . |
static GeocodingClient |
newInstance(Context context)
Deprecated.
Use
GeocodingClient.newInstance() instead. |
cancelAllActiveRequests, shutdown, shutdownNow
@Deprecated public static GeocodingClient newInstance(Context context)
GeocodingClient.newInstance()
instead.GeocodingNetworkClient
for the given context.public static GeocodingClient newInstance()
GeocodingNetworkClient
.public ResponseFuture<GeocodingResponse> geocode(GeocodingRequest request)
HMAuthException
except HMAuthPhoneNotVerifiedException
public ResponseFuture<Address> getAddressDetails(GeocodingResult geocodingResult, String languageCode)
GeocodingResult
, in the given
preferred language.geocodingResult
- The geocoding result whose address details to returnlanguageCode
- ISO 639-1 language code for the preferred language of the address
This request can throw the following exceptions:
HMAuthException
except HMAuthPhoneNotVerifiedException