HERE Android SDK Developer's Guide

AutoSuggestSearch

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

Class Summary

public class AutoSuggestSearch

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

Represents an AutoSuggestSearch which contains information about a refined search link.

[For complete information, see the section Class Details]

Method Summary

Table 1. Methods in AutoSuggestSearch
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 suggested search.

public GeoCoordinate getPosition ()

Gets the GeoCoordinate representing the geographical position of the suggested search.

public DiscoveryRequest getSuggestedSearchRequest ()

Gets the request to perform a suggested search.

public String toString ()

Class Details

Represents an AutoSuggestSearch which contains information about a refined search link.

Note: DiscoveryResultPage is retrieved by way of the DiscoveryRequest returned from a call to the getSuggestedSearchRequest() 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 suggested search is optional, so a call to this method could return null .

Returns:

The GeoBoundingBox

public String getCategory ()

Gets the category for the suggested search.

Note: category information for a suggested search is optional, so a call to this method could return null .

Returns:

The Category

public GeoCoordinate getPosition ()

Gets the GeoCoordinate representing the geographical position of the suggested search.

Note: position information for a suggested search is optional, so a call to this method could return null .

Returns:

The GeoCoordinate

public DiscoveryRequest getSuggestedSearchRequest ()

Gets the request to perform a suggested search.

Returns:

The DiscoveryRequest to retrieve the DiscoveryResultPage

public String toString ()