HERE Android SDK Developer's Guide

DiscoveryResult

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

Class Summary

public class DiscoveryResult

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

Represents a base class for a DiscoveryResult found in a DiscoveryResultPage.

[For complete information, see the section Class Details]

See also:

DiscoveryLink

PlaceLink

Nested Class Summary

Table 1. Nested Classes in DiscoveryResult
Nested Classes

public static final enumeration DiscoveryResult.ResultType

Represents values describing possible DiscoveryResult types.

Constructor Summary

Table 2. Constructors in DiscoveryResult
Constructors

DiscoveryResult (PlacesLink impl)

Method Summary

Table 3. Methods in DiscoveryResult
Methods

public boolean equals (Object obj)

For documentation, see java.lang.Object

public String getIconUrl ()

Gets the URL to retrieve the icon for the resource to which the Link refers.

public String getId ()

Gets the unique identifier for the resource to which the Link refers.

public ResultType getResultType ()

Gets the ResultType for the DiscoveryResult .

public String getTitle ()

Gets the localized title for the resource to which the Link refers.

public String getVicinity ()

Gets the String description for the vicinity of the Place.

public int hashCode ()

For documentation, see java.lang.Object

Class Details

Represents a base class for a DiscoveryResult found in a DiscoveryResultPage.

See also:

DiscoveryLink

PlaceLink

Constructor Details

Parameters:

  • impl

Method Details

public boolean equals (Object obj)

For documentation, see java.lang.Object

Parameters:

  • obj

public String getIconUrl ()

Gets the URL to retrieve the icon for the resource to which the Link refers.

Note: an icon URL for a linked object is optional, so a call to this method could return empty .

Returns:

The icon URL (could be empty)

public String getId ()

Gets the unique identifier for the resource to which the Link refers.

Note: an ID for a linked object is optional, so a call to this method could return empty .

Returns:

The ID (could be empty)

public ResultType getResultType ()

Gets the ResultType for the DiscoveryResult .

Returns:

The ResultType

public String getTitle ()

Gets the localized title for the resource to which the Link refers. Client devices can display this title within an application.

Note: a title for a linked object is optional, so a call to this method could return empty .

Returns:

The title (could be empty)

public String getVicinity ()

Gets the String description for the vicinity of the Place. Typically, this description is derived from the Address, but could also contain any other description that helps a user understand where the Place is located.

Returns:

The vicinity description (could be empty)

public int hashCode ()

For documentation, see java.lang.Object