HERE Android SDK Developer's Guide

AutoSuggest

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

Class Summary

public abstract class AutoSuggest

extends java.lang.Object

Represents the base class for suggested places and searches.

[For complete information, see the section Class Details]

Nested Class Summary

Table 1. Nested Classes in AutoSuggest
Nested Classes

public static final enumeration AutoSuggest.Type

Represents values describing supported AutoSuggest types for a text suggestion.

Method Summary

Table 2. Methods in AutoSuggest
Methods

public boolean equals (Object o)

public String getHighlightedTitle ()

Gets the display title for this place, with HTML markup highlighting the parts of the string that were matched.

public String getTitle ()

Gets the display title for this place.

public Type getType ()

Gets the specialized AutoSuggest type.

public String getUrl ()

Gets the String representation of the URI that refers to the resource with details for the suggested place, URI to the suggested search or URI to the suggested completion of query term, depending on the AutoSuggest type.

public int hashCode ()

Class Details

Represents the base class for suggested places and searches.

The following specialized types might be available:

  • AutoSuggestPlace
  • AutoSuggestSearch
  • AutoSuggestQuery

Method Details

public boolean equals (Object o)

Parameters:

  • o

public String getHighlightedTitle ()

Gets the display title for this place, with HTML markup highlighting the parts of the string that were matched. For example, if the user performs an AutoSuggest search with "Rest", the API will return the following:

  • title:Joey Restaurant
  • highlightedTitle:Joey Restaurant

Returns:

The hightlightedTitle

public String getTitle ()

Gets the display title for this place.

Returns:

The title

public Type getType ()

Gets the specialized AutoSuggest type.

Returns:

The type

public String getUrl ()

Gets the String representation of the URI that refers to the resource with details for the suggested place, URI to the suggested search or URI to the suggested completion of query term, depending on the AutoSuggest type.

Returns:

The URL

public int hashCode ()