openharmony 鸿蒙 capi-location-location-basicinfo

2026-08-25 浏览 (1)

Location_BasicInfo

typedef struct Location_BasicInfo {...} Location_BasicInfo

Overview

Defines the struct for the basic location information.

Since: 13

Related module: [Location] (capi-location.md)

Header file: oh_location_type.h

Summary

Member Variables

NameDescription
double latitudeLatitude 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 longitudeLongitude 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 altitudeLocation altitude, in meters.
double accuracyLocation accuracy, in meters.
double speedSpeed, in m/s.
double directionDirection information. The value ranges from 0 to 360, in degrees.
int64_t timeForFixLocation timestamp in the UTC format.
int64_t timeSinceBootTimestamp when the location is successfully obtained. The value is the duration from the time when the device is booted to the time when the location is obtained, in nanoseconds.
double altitudeAccuracyHeight accuracy, in meters.
double speedAccuracySpeed accuracy, in m/s.
double directionAccuracyDirection accuracy. The value ranges from 0 to 360, in degrees.
int64_t uncertaintyOfTimeSinceBootUncertainty of the location timestamp, in nanoseconds.
Location_SourceType locationSourceTypeSource of the location result. For details, see Location_SourceType.

你可能感兴趣的鸿蒙文章

openharmony 鸿蒙 errorcode-geoLocationManager

openharmony 鸿蒙 js-apis-system-location

openharmony 鸿蒙 capi-oh-location-type-h

openharmony 鸿蒙 Readme-EN

openharmony 鸿蒙 js-apis-geoLocationManager

openharmony 鸿蒙 js-apis-app-ability-FenceExtensionAbility

openharmony 鸿蒙 capi-location-location-requestconfig

openharmony 鸿蒙 capi-location-location-info

openharmony 鸿蒙 js-apis-app-ability-FenceExtensionContext

openharmony 鸿蒙 capi-location

  • 所属分类: 后端技术
  • 本文标签: 鸿蒙 软件
  • 版权声明: 本文链接 https://seaxiang.com/blog/ewSplcnJ