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

You cannot use this account to purchase a commercial plan on Developer Portal, as it is already associated to plans with different payment methods.

To purchase a commercial plan on Developer Portal, please register for or sign in with a different HERE Account.

Something took longer than expected.

The project should be available soon under your projects page.

Sorry, our services are not available in this region.

Something seems to have gone wrong. Please try again later.

We've detected that your account is set to Australian Dollars (AUD).
Unfortunately, we do not offer checkouts in AUD anymore.
You can continue using your current plan as normal, but to subscribe to one of our new plans,
please register for a new HERE account or contact us for billing questions on selfservesupport@here.com.