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