Skip to content

Titanium.Geolocation.LocationProviderDict

Simple object describing a location provider.

The accuracy and power values correspond to constants defined in the Android API. See android.location.Criteria in the Android API Reference.

These values are generalizations. In general, a provider with coarse accuracy will provide less accurate results than a provider with fine accuracy, and a provider with high power requirements will use more battery power than a provider with low power requirements.

Properties #

accuracy#

Type: Number

Accuracy of the location provider, either fine (1) or coarse (2).

name#

Type: String

Name of the location provider.

power#

Type: Number

Power consumption for this provider, either low (1), medium (2), or high (3).

Titanium SDK Documentation