HERE Android SDK Developer's Guide

GeoPosition

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

Class Summary

public class GeoPosition

extends java.lang.Object

Represents position, speed, and heading information as provided by a positioning device.

[For complete information, see the section Class Details]

Constructor Summary

Table 1. Constructors in GeoPosition
Constructors

GeoPosition (GeoCoordinate coordinate)

Public constructor

GeoPosition (GeoCoordinate coordinate, double speed, double heading, float latitudeAccuracy, float longitudeAccuracy, float altitudeAccuracy, Date timeStamp, String positionSource)

Public constructor

Field Summary

Table 2. Fields in GeoPosition
Fields

public static final int UNKNOWN

Definition of an unknown accuracy, course (heading/bearing) or speed

Method Summary

Table 3. Methods in GeoPosition
Methods

public boolean equals (Object obj)

public float getAltitudeAccuracy ()

Gets the current altitude accuracy as measured by the enabled positioning device.

public GeoCoordinate getCoordinate ()

Gets the current GeoCoordinate as measured by the enabled positioning device.

public double getHeading ()

Gets the current course heading as measured by the enabled positioning device.

public float getLatitudeAccuracy ()

Gets the current latitude accuracy as measured by the enabled positioning device.

public float getLongitudeAccuracy ()

Gets the current longitude accuracy as measured by the enabled positioning device.

public String getPositionSource ()

Gets the position source for the last position measured by the enabled positioning device.

public double getSpeed ()

Gets the current speed as measured by the enabled positioning device.

public Date getTimestamp ()

Gets the timestamp for the last position measured by the enabled positioning device.

public int hashCode ()

Class Details

Represents position, speed, and heading information as provided by a positioning device.

Constructor Details

GeoPosition (GeoCoordinate coordinate)

Public constructor

Parameters:

GeoPosition (GeoCoordinate coordinate, double speed, double heading, float latitudeAccuracy, float longitudeAccuracy, float altitudeAccuracy, Date timeStamp, String positionSource)

Public constructor

Parameters:

  • coordinate

    A GeoCoordinate to be used by this object.

  • speed
  • heading
  • latitudeAccuracy
  • longitudeAccuracy
  • altitudeAccuracy
  • timeStamp
  • positionSource

Field Details

public static final int UNKNOWN

Definition of an unknown accuracy, course (heading/bearing) or speed

Method Details

public boolean equals (Object obj)

Parameters:

  • obj

public float getAltitudeAccuracy ()

Gets the current altitude accuracy as measured by the enabled positioning device.

Returns:

The current altitude accuracy or GeoPosition.UNKNOWN if unknown.

public GeoCoordinate getCoordinate ()

Gets the current GeoCoordinate as measured by the enabled positioning device.

Returns:

The current GeoCoordinate

public double getHeading ()

Gets the current course heading as measured by the enabled positioning device.

Returns:

The current course heading or GeoPosition.UNKNOWN if unknown.

public float getLatitudeAccuracy ()

Gets the current latitude accuracy as measured by the enabled positioning device.

Returns:

The current latitude accuracy or GeoPosition.UNKNOWN if unknown.

public float getLongitudeAccuracy ()

Gets the current longitude accuracy as measured by the enabled positioning device.

Returns:

The current longitude accuracy or GeoPosition.UNKNOWN if unknown.

public String getPositionSource ()

Gets the position source for the last position measured by the enabled positioning device.

Returns:

The position source

public double getSpeed ()

Gets the current speed as measured by the enabled positioning device.

Returns:

The current speed or GeoPosition.UNKNOWN if unknown.

public Date getTimestamp ()

Gets the timestamp for the last position measured by the enabled positioning device.

Returns:

The timestamp

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.