# LocationCoordinates

> Simple object holding the data for a location update.

- Source: https://titaniumsdk.com/docs/sdk/13.0.1/LocationCoordinates
- Titanium SDK version: 13.0.1
- Kind: pseudo
- Platforms: Android, iPhone, iPad, macOS

## Properties

### accuracy

- Type: Number
- Platforms: Android, iPhone, iPad, macOS

Accuracy of the location update, in meters.

### altitude

- Type: Number
- Platforms: Android, iPhone, iPad, macOS

Altitude of the location update, in meters.

### altitudeAccuracy

- Type: Number
- Platforms: Android, iPhone, iPad, macOS
- Requires: Android 8.0.0+

Vertical accuracy of the location update, in meters.

### floor

- Type: LocationCoordinatesFloor
- Platforms: iPhone, iPad, macOS
- Since: Titanium SDK 3.6.0

The floor of the building on which the user is located.

### heading

- Type: Number
- Platforms: Android, iPhone, iPad, macOS

Compass heading, in degrees. May be unknown if device is not moving. On
iOS, a negative value indicates that the heading data is not valid.

### latitude

- Type: Number
- Platforms: Android, iPhone, iPad, macOS

Latitude of the location update, in decimal degrees.

### longitude

- Type: Number
- Platforms: Android, iPhone, iPad, macOS

Longitude of the location update, in decimal degrees.

### speed

- Type: Number
- Platforms: Android, iPhone, iPad, macOS

Current speed in meters/second. On iOS, a negative value indicates that the
heading data is not valid or the accuracy is configured incorrectly.
Note: Due to the Apple Geolocation API, set the [Titanium.Geolocation.accuracy](https://titaniumsdk.com/docs/sdk/Titanium.Geolocation.md#accuracy)
property to [Titanium.Geolocation.ACCURACY_BEST_FOR_NAVIGATION](https://titaniumsdk.com/docs/sdk/Titanium.Geolocation.md#ACCURACY_BEST_FOR_NAVIGATION) in order to properly
measure speed changes and prevent the app from returning negative values.

### timestamp

- Type: Number
- Platforms: Android, iPhone, iPad, macOS

Timestamp for this location update, in milliseconds.

---

- This corpus documents Titanium SDK 13.4.1. Anything here that does not name a version describes 13.4.1.
- Titanium is maintained by TiDev. The Appcelerator toolchain is retired: there is no `appc` CLI, no Appcelerator Studio and no hosted build service. The supported CLI is `titanium` on npm, invoked as `ti`.

