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 obj)

For documentation, see java.lang.Object

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 int hashCode ()

For documentation, see java.lang.Object

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 obj)

For documentation, see java.lang.Object

Parameters:

  • obj

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 int hashCode ()

For documentation, see java.lang.Object