# Location

Source: [https://docs.qualcomm.com/doc/80-PK177-134/topic/gtp_location.html](https://docs.qualcomm.com/doc/80-PK177-134/topic/gtp_location.html)

Struct containing location information.

## Java

    LocationCopy to clipboard

## Native

    gtp_LocationCopy to clipboard

| Field | Data Type | Description |
| --- | --- | --- |
| locationFlags | Native: uint16\_t | Flags indicating the location parameters which<br>                                    are valid in the callbacks. The flag bits are defined in enum<br>                                    LocationFlagsBits |
| Java: int32 |
| timestamp | Native: uint64\_t | Timestamp of the location report in UTC<br>                                    milliseconds. |
| Java: long |
| latitude | Native: double | Latitude value in degrees. |
| Java: double |
| longitude | Native: double | Longitude value in degrees. |
| Java: double |
| altitude | Native: double | Altitude value in meters. |
| Java: double |
| speed | Native: float | Speed value in meters per second. |
| Java: float |
| bearing | Native: float | Bearing value in degrees. |
| Java: float |
| accuracy | Native: float | Accuracy value in meters. |
| Java: float |
| verticalAccuracy | Native: float | Vertical Accuracy value in meters. |
| Java: float |
| speedAccuracy | Native: float | Speed Accuracy value in meters per<br>                                    second. |
| Java: float |
| bearingAccuracy | Native: float | Bearing Accuracy value in degrees. |
| Java: float |
| elapsedRealTimeNanos | Native: uint64\_t | Elapsed time since system boot, in<br>                                    nanoseconds. |
| Java: long |
| elapsedRealTimeUncNanos | Native: uint64\_t | Uncertainty in elapsed time since system boot,<br>                                    in nanoseconds. |
| Java: long |

**Parent Topic:** GTP classes and structs

Last Published: Nov 14, 2024

Previous Topic
 
GTP classes and structs Next Topic

Example code