HERE Android SDK Developer's Guide

MatchedGeoPosition

The class MatchedGeoPosition is a member of com.here.android.mpa.common .

Class Summary

public final class MatchedGeoPosition

extends com.here.android.mpa.common.GeoPosition, java.lang.Object

An extended GeoPosition class which provides additional position-related information.

[For complete information, see the section Class Details]

See also:

onPositionUpdated(LocationMethod, GeoPosition, boolean)

Method Summary

Table 1. Methods in MatchedGeoPosition
Methods

public int getMatchQuality ()

Returns a value indicating the quality of the given map-matched position object.

public GeoPosition getRawPosition ()

Obtains the raw position from which the given map-matched position was generated.

public RoadElement getRoadElement ()

Returns the RoadElement at this matched position.

public boolean isExtrapolated ()

Determines if this matched position is extrapolated.

public boolean isOnStreet ()

Determines if this map-matched position matches to a street.

Class Details

An extended GeoPosition class which provides additional position-related information. The class is designed to support walk or drive navigation.

See also:

onPositionUpdated(LocationMethod, GeoPosition, boolean)

Method Details

public int getMatchQuality ()

Returns a value indicating the quality of the given map-matched position object.

Returns:

An integer in the range of [0,7], where 0 indicates a poor match and 7 a good match.

public GeoPosition getRawPosition ()

Obtains the raw position from which the given map-matched position was generated.

Returns:

A GeoPosition representing the raw position.

public RoadElement getRoadElement ()

Returns the RoadElement at this matched position.

Returns:

An object representing the road element at this map-matched position.

public boolean isExtrapolated ()

Determines if this matched position is extrapolated.

Returns:

true if the position is extrapolated, otherwise false

public boolean isOnStreet ()

Determines if this map-matched position matches to a street.

Returns:

true if the position is mapped to a street, otherwise false.