public class ReverseGeocodeRequest extends Request<Location>
ReverseGeocodeRequest represents an extended Request used to retrieve
Location data by way of Geocoder search services.
Note: the response to a ReverseGeocodeRequest is a single Location object.
Request.ConnectivityBUILDING_ID_REFERENCE_NAME, m_addressFilter, m_collectionSize, m_connectivityMode, m_locale, m_mapViewport, m_pimpl, m_referenceNames, m_requestConnectivity, m_richTextFormatting, m_userAuthToken, 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 geocode request that resolves a
GeoCoordinate into an
Location. |
ReverseGeocodeRequest(GeoCoordinate location,
ReverseGeocodeMode mode,
float bearing)
Creates a reverse geocode request that resolves a
GeoCoordinate into an
Location. |
| Modifier and Type | Method and Description |
|---|---|
ErrorCode |
execute(ResultListener<Location> listener)
Executes an asynchronous request.
|
addCustomHeader, addReference, cancel, determineConnectivityMode, getCollectionSize, getConnectivity, getLocale, getReferences, setCollectionSize, setConnectivity, setLocale, setMapViewport, setUserAuthenticationpublic ReverseGeocodeRequest(GeoCoordinate location)
GeoCoordinate into an
Location.location - A GeoCoordinate representing the query location context.java.lang.IllegalArgumentException - Upon a failure to handle a passed argument.public ReverseGeocodeRequest(GeoCoordinate location, ReverseGeocodeMode mode, float bearing)
GeoCoordinate into an
Location.location - A GeoCoordinate representing the query location context.mode - A ReverseGeocodeMode mode in which the response should be filtered.bearing - A bearing expresses the direction in which the vehicle is heading in degrees
starting at true North and continuing clockwise around the compass. Ignored if
mode is not equal to ReverseGeocodeMode.TRACK_POSITION.java.lang.IllegalArgumentException - Upon a failure to handle a passed argument.public ErrorCode execute(ResultListener<Location> listener)
execute in class Request<Location>listener - A ResultListener passed along with the request to monitor progressErrorCode representing an appropriate resultErrorCode.SERVICE_UNAVAILABLE can be returned if current search service
is unavailable for your region. For more information see the Developer's Guide.