O'Reilly logo

iPhone JavaScript Cookbook by Arturo Fernandez Montoro

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

Chapter 9. Location, Location, Location

In this chapter, we will cover:

  • Detecting current orientation
  • Identifying the current location
  • Opening Google Maps at a specific location
  • Calculating distances between two points

Introduction

This chapter introduces you to the world of geolocation and how to take advantage of it using our mobile devices. Basically, geolocation is a term used for defining the action of getting an exact location using the latitude and longitude coordinates. HTML5 and some of our frameworks offer us functionalities and features for utilizing geolocation. Thanks to it, we can add these seemingly complex features to our web applications for iOS devices.

Google Maps is one of the most popular available web services and many people consider ...

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