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
Nested Classes |
---|
Represents values describing supported AutoSuggest types for a text suggestion. |
Method Summary
Methods |
---|
|
Gets the display title for this place, with HTML markup highlighting the parts of the string that were matched. |
Gets the display title for this place. |
Gets the specialized AutoSuggest type. |
Gets the |
|
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 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 ()