# 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](https://docs.qualcomm.com/doc/80-PK177-134/topic/gtp_location_flags_bits.html) |
| locationFlags | Java: int32 | Flags indicating the location parameters which<br>                                    are valid in the callbacks. The flag bits are defined in enum<br>                                    [LocationFlagsBits](https://docs.qualcomm.com/doc/80-PK177-134/topic/gtp_location_flags_bits.html) |
| timestamp | Native: uint64\_t | Timestamp of the location report in UTC<br>                                    milliseconds. |
| timestamp | Java: long | Timestamp of the location report in UTC<br>                                    milliseconds. |
| latitude | Native: double | Latitude value in degrees. |
| latitude | Java: double | Latitude value in degrees. |
| longitude | Native: double | Longitude value in degrees. |
| longitude | Java: double | Longitude value in degrees. |
| altitude | Native: double | Altitude value in meters. |
| altitude | Java: double | Altitude value in meters. |
| speed | Native: float | Speed value in meters per second. |
| speed | Java: float | Speed value in meters per second. |
| bearing | Native: float | Bearing value in degrees. |
| bearing | Java: float | Bearing value in degrees. |
| accuracy | Native: float | Accuracy value in meters. |
| accuracy | Java: float | Accuracy value in meters. |
| verticalAccuracy | Native: float | Vertical Accuracy value in meters. |
| verticalAccuracy | Java: float | Vertical Accuracy value in meters. |
| speedAccuracy | Native: float | Speed Accuracy value in meters per<br>                                    second. |
| speedAccuracy | Java: float | Speed Accuracy value in meters per<br>                                    second. |
| bearingAccuracy | Native: float | Bearing Accuracy value in degrees. |
| bearingAccuracy | Java: float | Bearing Accuracy value in degrees. |
| elapsedRealTimeNanos | Native: uint64\_t | Elapsed time since system boot, in<br>                                    nanoseconds. |
| elapsedRealTimeNanos | Java: long | Elapsed time since system boot, in<br>                                    nanoseconds. |
| elapsedRealTimeUncNanos | Native: uint64\_t | Uncertainty in elapsed time since system boot,<br>                                    in nanoseconds. |
| elapsedRealTimeUncNanos | Java: long | Uncertainty in elapsed time since system boot,<br>                                    in nanoseconds. |
|  |  |  |

**Parent Topic:** [GTP classes and structs](https://docs.qualcomm.com/doc/80-PK177-134/topic/gtp_classes_and_structs.html)

Last Published: Nov 14, 2024

[Previous Topic
GTP classes and structs](https://docs.qualcomm.com/bundle/publicresource/80-PK177-134/topics/gtp_classes_and_structs.md) [Next Topic
Example code](https://docs.qualcomm.com/bundle/publicresource/80-PK177-134/topics/gtp_example_code.md)