HERE Android SDK Developer's Guide

ReverseGeocodeRequest2

The class ReverseGeocodeRequest2 is a member of com.here.android.mpa.search .

Class Summary

public class ReverseGeocodeRequest2

extends com.here.android.mpa.search.Request, java.lang.Object

The ReverseGeocodeRequest2 represents an extended Request used to retrieve Location data by way of Geocoder search services.

[For complete information, see the section Class Details]

Constructor Summary

Table 1. Constructors in ReverseGeocodeRequest2
Constructors

ReverseGeocodeRequest2 (GeoCoordinate location)

Creates a reverse geocode request that resolves a GeoCoordinate into an Location.

ReverseGeocodeRequest2 (GeoCoordinate location, Locale locale)

Creates a reverse geocode request that resolves a GeoCoordinate into an Location.

ReverseGeocodeRequest2 (GeoCoordinate location, Locale locale, ReverseGeocodeMode mode, float bearing)

Creates a reverse geocode request that resolves a GeoCoordinate into an Location.

Method Summary

Table 2. Methods in ReverseGeocodeRequest2
Methods

public ErrorCode execute (ResultListener<Location> listener)

Executes an asynchronous request.

Class Details

The ReverseGeocodeRequest2 represents an extended Request used to retrieve Location data by way of Geocoder search services.

Note: the response to a ReverseGeocodeRequest2 is a single Location object.

Constructor Details

ReverseGeocodeRequest2 (GeoCoordinate location)

Creates a reverse geocode request that resolves a GeoCoordinate into an Location.

Parameters:

  • location

    A GeoCoordinate representing the query location context.

Throws:

  • IllegalArgumentException

    Upon a failure to handle a passed argument.

ReverseGeocodeRequest2 (GeoCoordinate location, Locale locale)

Creates a reverse geocode request that resolves a GeoCoordinate into an Location.

Parameters:

  • location

    A GeoCoordinate representing the query location context.

  • locale

    A Locale locale in which the response should be returned.

Throws:

  • IllegalArgumentException

    Upon a failure to handle a passed argument.

ReverseGeocodeRequest2 (GeoCoordinate location, Locale locale, ReverseGeocodeMode mode, float bearing)

Creates a reverse geocode request that resolves a GeoCoordinate into an Location.

Parameters:

  • location

    A GeoCoordinate representing the query location context.

  • locale

    A Locale locale in which the response should be returned.

  • 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 .

Throws:

  • IllegalArgumentException

    Upon a failure to handle a passed argument.

Method Details

public ErrorCode execute (ResultListener<Location> listener)

Executes an asynchronous request.

Parameters:

  • listener

    A ResultListener passed along with the request to monitor progress

Returns:

The ErrorCode representing an appropriate result