Skip to content

Titanium.Geolocation.LocationCoordinates

Simple object holding the data for a location update.

Properties #

accuracy#

Type: Number

Accuracy of the location update, in meters.

altitude#

Type: Number

Altitude of the location update, in meters.

altitudeAccuracy#

Type: Number

Vertical accuracy of the location update, in meters.

floor#

Type: LocationCoordinatesFloor

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

heading#

Type: Number

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

Latitude of the location update, in decimal degrees.

longitude#

Type: Number

Longitude of the location update, in decimal degrees.

speed#

Type: Number

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
property to Titanium.Geolocation.ACCURACY_BEST_FOR_NAVIGATION in order to properly
measure speed changes and prevent the app from returning negative values.

timestamp#

Type: Number

Timestamp for this location update, in milliseconds.

Titanium SDK Documentation