目录

Location_BasicInfo

Overview

Defines the struct for the basic location information.

Since: 13

Related module: Location

Summary

[h2]Member Variables

Name Description
double latitude Latitude information. A positive value indicates north latitude, and a negative value indicates south latitude. The value ranges from –90 to 90. Only the WGS84 coordinate system is supported.
double longitude Longitude information. A positive value indicates east longitude, and a negative value indicates west longitude. The value ranges from -180 to 180. Only the WGS84 coordinate system is supported.
double altitude Location altitude, in meters.
double accuracy Location accuracy, in meters.
double speed Speed, in m/s.
double direction Direction information. The value ranges from 0 to 360, in degrees.
int64_t timeForFix Location timestamp in the UTC format.
int64_t timeSinceBoot Location timestamp since boot.
double altitudeAccuracy Height accuracy, in meters.
double speedAccuracy Speed accuracy, in meters per second.
double directionAccuracy Direction accuracy. The value ranges from 0 to 360, in degrees.
int64_t uncertaintyOfTimeSinceBoot Uncertainty of the location timestamp.
Location_SourceTypelocationSourceType Source of the location result. For details, see Location_SourceType.

Member Variable Description

[h2]accuracy

double Location_BasicInfo::accuracy

Description

Location accuracy, in meters.

[h2]altitude

double Location_BasicInfo::altitude

Description

Location altitude, in meters.

[h2]altitudeAccuracy

double Location_BasicInfo::altitudeAccuracy

Description

Height accuracy, in meters.

[h2]direction

double Location_BasicInfo::direction

Description

Direction information. The value ranges from 0 to 360, in degrees.

[h2]directionAccuracy

double Location_BasicInfo::directionAccuracy

Description

Direction accuracy. The value ranges from 0 to 360, in degrees.

[h2]latitude

double Location_BasicInfo::latitude

Description

Latitude information. A positive value indicates north latitude, and a negative value indicates south latitude. The value ranges from –90 to 90. Only the WGS84 coordinate system is supported.

[h2]locationSourceType

Location_SourceType Location_BasicInfo::locationSourceType

Description

Source of the location result. For details, see Location_SourceType.

[h2]longitude

double Location_BasicInfo::longitude

Description

Longitude information. A positive value indicates east longitude, and a negative value indicates west longitude. The value ranges from -180 to 180. Only the WGS84 coordinate system is supported.

[h2]speed

double Location_BasicInfo::speed

Description

Speed, in m/s.

[h2]speedAccuracy

double Location_BasicInfo::speedAccuracy

Description

Speed accuracy, in meters per second.

[h2]timeForFix

int64_t Location_BasicInfo::timeForFix

Description

Location timestamp in the UTC format.

[h2]timeSinceBoot

int64_t Location_BasicInfo::timeSinceBoot

Description

Location timestamp since boot.

[h2]uncertaintyOfTimeSinceBoot

int64_t Location_BasicInfo::uncertaintyOfTimeSinceBoot

Description

Uncertainty of the location timestamp.