1# Location_BasicInfo 2 3 4## Overview 5 6Defines the struct for the basic location information. 7 8**Since**: 13 9 10**Related module**: [Location](_location.md) 11 12 13## Summary 14 15 16### Member Variables 17 18| Name| Description| 19| -------- | -------- | 20| double [latitude](#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. | 21| double [longitude](#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. | 22| double [altitude](#altitude) | Location altitude, in meters. | 23| double [accuracy](#accuracy) | Location accuracy, in meters. | 24| double [speed](#speed) | Speed, in m/s. | 25| double [direction](#direction) | Direction information. The value ranges from **0** to **360**, in degrees. | 26| int64_t [timeForFix](#timeforfix) | Location timestamp in the UTC format. | 27| int64_t [timeSinceBoot](#timesinceboot) | Location timestamp since boot. | 28| double [altitudeAccuracy](#altitudeaccuracy) | Height accuracy, in meters. | 29| double [speedAccuracy](#speedaccuracy) | Speed accuracy, in meters per second. | 30| double [directionAccuracy](#directionaccuracy) | Direction accuracy. The value ranges from **0** to **360**, in degrees. | 31| int64_t [uncertaintyOfTimeSinceBoot](#uncertaintyoftimesinceboot) | Uncertainty of the location timestamp. | 32| [Location_SourceType](_location.md#location_sourcetype)[locationSourceType](#locationsourcetype) | Source of the location result. For details, see [Location_SourceType](_location.md#location_sourcetype).| 33 34 35## Member Variable Description 36 37 38### accuracy 39 40``` 41double Location_BasicInfo::accuracy 42``` 43**Description** 44Location accuracy, in meters. 45 46 47### altitude 48 49``` 50double Location_BasicInfo::altitude 51``` 52**Description** 53Location altitude, in meters. 54 55 56### altitudeAccuracy 57 58``` 59double Location_BasicInfo::altitudeAccuracy 60``` 61**Description** 62Height accuracy, in meters. 63 64 65### direction 66 67``` 68double Location_BasicInfo::direction 69``` 70**Description** 71Direction information. The value ranges from 0 to 360, in degrees. 72 73 74### directionAccuracy 75 76``` 77double Location_BasicInfo::directionAccuracy 78``` 79**Description** 80Direction accuracy. The value ranges from 0 to 360, in degrees. 81 82 83### latitude 84 85``` 86double Location_BasicInfo::latitude 87``` 88**Description** 89Latitude 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. 90 91 92### locationSourceType 93 94``` 95Location_SourceType Location_BasicInfo::locationSourceType 96``` 97**Description** 98Source of the location result. For details, see [Location_SourceType](_location.md#location_sourcetype). 99 100 101### longitude 102 103``` 104double Location_BasicInfo::longitude 105``` 106**Description** 107Longitude 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. 108 109 110### speed 111 112``` 113double Location_BasicInfo::speed 114``` 115**Description** 116Speed, in m/s. 117 118 119### speedAccuracy 120 121``` 122double Location_BasicInfo::speedAccuracy 123``` 124**Description** 125Speed accuracy, in meters per second. 126 127 128### timeForFix 129 130``` 131int64_t Location_BasicInfo::timeForFix 132``` 133**Description** 134Location timestamp in the UTC format. 135 136 137### timeSinceBoot 138 139``` 140int64_t Location_BasicInfo::timeSinceBoot 141``` 142**Description** 143Location timestamp since boot. 144 145 146### uncertaintyOfTimeSinceBoot 147 148``` 149int64_t Location_BasicInfo::uncertaintyOfTimeSinceBoot 150``` 151**Description** 152Uncertainty of the location timestamp. 153