HERE Android SDK Developer's Guide

NearbyCoverageResult

The class NearbyCoverageResult is a member of com.here.android.mpa.urbanmobility .

Class Summary

public class NearbyCoverageResult

extends java.lang.Object

Represents information about nearby stops, lines, and city (in case if the user is assumed to be in one).

[For complete information, see the section Class Details]

Method Summary

Table 1. Methods in NearbyCoverageResult
Methods

public boolean equals (Object o)

public City getCity ()

Gets coverage information about a city.

public ExploredCoverage getExploredCoverage ()

Gets information about what is available in the more remote vicinity.

public String getGeoRef ()

Gets reference to the user's location as Geohash (e.g.

public int getRadius ()

Gets the radius, in meters, for which the coverage information is provided.

public int getStopsCount ()

Gets number of stops found.

public int getTransportsCount ()

Gets the number of transports found.

public CoverageType getType ()

Gets type of coverage in this area

public int hashCode ()

public boolean isCovered ()

Gets whether or not the user is considered to be covered.

Class Details

Represents information about nearby stops, lines, and city (in case if the user is assumed to be in one).

IMPORTANT: Urban Mobility Coverage Search is a Beta feature. The related classes are subject to change without notice.

Method Details

public boolean equals (Object o)

Parameters:

  • o

public City getCity ()

Gets coverage information about a city.

Returns:

Coverage information about a city, or null if not available.

public ExploredCoverage getExploredCoverage ()

Gets information about what is available in the more remote vicinity. Routing is based on this information as soon as the user location has changed.

Returns:

Explored coverage information, or null if not available.

public String getGeoRef ()

Gets reference to the user's location as Geohash (e.g. "u33d") that can be used to collect feedback without disclosing the user's exact location.

Returns:

User location reference as Geohash string.

public int getRadius ()

Gets the radius, in meters, for which the coverage information is provided. The default value of radius is 150000m.

Returns:

Radius for which the coverage information is provided.

public int getStopsCount ()

Gets number of stops found.

Returns:

Number of stops found.

public int getTransportsCount ()

Gets the number of transports found.

Returns:

Number of transports found.

public CoverageType getType ()

Gets type of coverage in this area

Returns:

Type of coverage in this area.

public int hashCode ()

public boolean isCovered ()

Gets whether or not the user is considered to be covered.

Returns:

True if user is considered to be covered otherwise false.