Skip To Content ArcGIS for Developers Sign In Dashboard

Location Class

(Esri::ArcGISRuntime::Location)

Represents a location update from a position source. More...

Header: #include <Location>
Since: Esri::ArcGISRuntime 100.0

Public Functions

Location(const Location &other)
Location(Location &&other)
~Location()
double course() const
double horizontalAccuracy() const
bool isEmpty() const
bool isLastKnown() const
Point position() const
double velocity() const
Location &operator=(const Location &other)
Location &operator=(Location &&other)

Detailed Description

Represents a location update from a position source.

See also LocationDisplay.

Member Function Documentation

Location::Location(const Location &other)

Copy constructor from other Location.

Location::Location(Location &&other)

Move constructor from other Location.

Location::~Location()

Destructor.

double Location::course() const

Gets the direction in which the device is traveling.

The direction is measured in degrees starting at due north and continuing clockwise around the compass. Thus, north is 0 degrees, east is 90 degrees, south is 180 degrees, and so on. Course values may not be available on all devices. A negative value indicates that the direction is invalid.

double Location::horizontalAccuracy() const

Gets the radius of uncertainty for the location, measured in meters.

The position identifies the center of the circle, and this value indicates the radius of that circle. A negative value indicates that the position is invalid.

bool Location::isEmpty() const

Returns true if this Location is empty.

bool Location::isLastKnown() const

Gets whether the location information is current or based on a last known update.

Returns true if it is based on last known update. It is considered to be of last known update once the LocationDisplay::acquiringTimeout has passed without an update.

Point Location::position() const

Gets the coordinates of the position as a Point.

double Location::velocity() const

Gets the instantaneous speed of the device in meters per second.

Location &Location::operator=(const Location &other)

Assignment operator from other Location.

Location &Location::operator=(Location &&other)

Move operator from other Location.


Feedback on this topic?