public class ReverseGeocodeRequest extends Request<Address>
ReverseGeocodeRequest
represents an extended Request
used to retrieve
Address
data by way of Geocoder
search services.
Note: the response to a ReverseGeocodeRequest
is a single Address
object.
BUILDING_ID_REFERENCE_NAME, PLACE_CONTENT_WIKIPEDIA, PVID_ID_REFERENCE_NAME, VENUES_CONTENT_ID_REFERENCE_NAME, VENUES_DESTINATION_ID_REFERENCE_NAME, VENUES_ID_REFERENCE_NAME, VENUES_VENUE_ID_REFERENCE_NAME
Constructor and Description |
---|
ReverseGeocodeRequest(GeoCoordinate location)
Creates a reverse geocoder request that resolves a
GeoCoordinate into an
Address . |
Modifier and Type | Method and Description |
---|---|
ErrorCode |
execute(ResultListener<Address> listener)
Executes an asynchronous request.
|
public ReverseGeocodeRequest(GeoCoordinate location)
GeoCoordinate
into an
Address
.location
- A GeoCoordinate
representing the query location contextjava.lang.IllegalArgumentException
- Upon a failure to handle the received argument.public ErrorCode execute(ResultListener<Address> listener)
listener
- A ResultListener
passed along with the request to monitor progressErrorCode
representing an appropriate result