HERE Android SDK Developer's Guide

AutoSuggestPlace

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

Class Summary

public class AutoSuggestPlace

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

Represents an AutoSuggestPlace which contains information about a suggested Place .

[For complete information, see the section Class Details]

Method Summary

Table 1. Methods in AutoSuggestPlace
Methods

public GeoBoundingBox getBoundingBox ()

Gets the GeoBoundingBox describing a range of coordinates that correspond to the Place.

public String getCategory ()

Gets the category for the Place.

public String getHighlightedVicinity ()

public String getId ()

public PlaceRequest getPlaceDetailsRequest ()

Gets the request to retrieve the Place details.

public GeoCoordinate getPosition ()

Gets the GeoCoordinate representing the geographical position of the Place.

public String getVicinity ()

Gets the String description for the vicinity of the Place .

public String toString ()

Class Details

Represents an AutoSuggestPlace which contains information about a suggested Place .

Note: detailed Place information is retrieved by way of the PlaceRequest returned from a call to the getPlaceDetailsRequest() method.

Method Details

public GeoBoundingBox getBoundingBox ()

Gets the GeoBoundingBox describing a range of coordinates that correspond to the Place. Typically, bounding boxes are associated with places such as cities and countries.

Note: bounding box information for a Place is optional, so a call to this method could return null .

Returns:

The GeoBoundingBox containing the Place (could be null)

public String getCategory ()

Gets the category for the Place.

Returns:

The Category

public String getHighlightedVicinity ()

public String getId ()

public PlaceRequest getPlaceDetailsRequest ()

Gets the request to retrieve the Place details.

Returns:

The PlaceRequest to retrieve the Place details

public GeoCoordinate getPosition ()

Gets the GeoCoordinate representing the geographical position of the Place.

Returns:

The GeoCoordinate

public String getVicinity ()

Gets the String description for the vicinity of the Place . Typically, this description is derived from the Address, but could also contain any other description that helps a user understand where the Place is located.

Returns:

The vicinity description

public String toString ()