harmony 鸿蒙Location_BasicInfo
Location_BasicInfo
Overview
Defines the struct for the basic location information.
Since: 13
Related module: Location
Header file: oh_location_type.h
Summary
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, in nanosecond. The value is the duration from the time when the device is booted to the time when the location is obtained. This means that the timestamp is reset each time the device is restarted. |
double altitudeAccuracy | Height accuracy, in meters. |
double speedAccuracy | Speed accuracy, in m/s. |
double directionAccuracy | Direction accuracy. The value ranges from 0 to 360, in degrees. |
int64_t uncertaintyOfTimeSinceBoot | Uncertainty of the location timestamp (that is, timeSinceBoot), in nanosecond. |
Location_SourceType locationSourceType | Source of the location result. For details, see Location_SourceType. |
Member Variable Description
accuracy
double Location_BasicInfo::accuracy
Description
Location accuracy, in meters.
altitude
double Location_BasicInfo::altitude
Description
Location altitude, in meters.
altitudeAccuracy
double Location_BasicInfo::altitudeAccuracy
Description
Height accuracy, in meters.
direction
double Location_BasicInfo::direction
Description
Direction information. The value ranges from 0 to 360, in degrees.
directionAccuracy
double Location_BasicInfo::directionAccuracy
Description
Direction accuracy. The value ranges from 0 to 360, in degrees.
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.
locationSourceType
Location_SourceType Location_BasicInfo::locationSourceType
Description
Source of the location result. For details, see Location_SourceType.
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.
speed
double Location_BasicInfo::speed
Description
Speed, in m/s.
speedAccuracy
double Location_BasicInfo::speedAccuracy
Description
Speed accuracy, in m/s.
timeForFix
int64_t Location_BasicInfo::timeForFix
Description
Location timestamp in the UTC format.
timeSinceBoot
int64_t Location_BasicInfo::timeSinceBoot
Description
Location timestamp since boot.
uncertaintyOfTimeSinceBoot
int64_t Location_BasicInfo::uncertaintyOfTimeSinceBoot
Description
Uncertainty of the location timestamp.
你可能感兴趣的鸿蒙文章
harmony 鸿蒙Location Kit Error Codes
harmony 鸿蒙@ohos.app.ability.FenceExtensionAbility (FenceExtensionAbility)
harmony 鸿蒙@ohos.app.ability.FenceExtensionContext (FenceExtensionContext) (System API)
harmony 鸿蒙@ohos.app.ability.FenceExtensionContext (FenceExtensionContext)
harmony 鸿蒙@ohos.geoLocationManager (Geolocation Manager) (System API)
harmony 鸿蒙@ohos.geoLocationManager (Geolocation Manager)
- 所属分类: 后端技术
- 本文标签:
热门推荐
-
2、 - 优质文章
-
3、 gate.io
-
8、 golang
-
9、 openharmony
-
10、 Vue中input框自动聚焦