Skip to content

Titanium.Geolocation.LocationResults

Argument passed to the getCurrentPosition callback.

Extends: ErrorResponse

Properties #

code#

extended

Type: Number

Error code. Returns 0 if success is true.

Error code will be 0 if success is true, nonzero otherwise. If the error
was generated by the operating system, that system's error value is used.
Otherwise, this value will be -1.

coords#

Type: LocationCoordinates

If success is true, actual location data for this update.

error#

extended

Type: String

Error message, if any returned.

Will be undefined if success is true.

provider#

Type: LocationProviderDict

If success is true, object describing the location provider generating this update.

success#

extended

Type: Boolean

Indicates if the operation succeeded.

Returns true if request succeeded, false otherwise.

Titanium SDK Documentation