O'Reilly logo

Creating Mobile Apps with Appcelerator Titanium by Christian Brousseau

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Getting the device's location

In order to search photos that were taken around the device's location, it is imperative that we determine where this location is. Titanium provides us with a Geolocation module that is provided with the SDK.

The module provides the following two main families of features:

  • Location services that can be used to determine the location of the device.
  • Geocoding and reverse geocoding that can be used to convert geographic coordinates into street addresses. The reverse is also possible, meaning that we can convert physical addresses into geographic coordinates.

Tip

Be always thoughtful of power consumption when dealing with location services. Many factors such as accuracy and update frequency can have a huge impact on the device's ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required