Chapter 18. Displaying Maps

WHAT YOU WILL LEARN IN THIS CHAPTER:

  • How to display Google Maps using the Map Kit framework

  • How to obtain geographical data using the Core Location framework

  • How to obtain directional data to rotate the map

  • How to add annotations to a map

  • How to perform reverse geocoding to obtain an address

With the advent of mobile devices, users are more and more accustomed to having access to locale information at their fingertips. In this chapter, you will learn how to use the Map Kit to give users that information quickly and easily.

DISPLAYING MAPS AND MONITORING CHANGES USING THE MAP KIT

The iPhone SDK 3.2 ships with the Map Kit framework, a set of libraries that work with the Google Mobile Maps Service. You can use the Map Kit to display maps within your iPad application, as well as to display your current location. In fact, you can enable the Map Kit to track your current location simply by setting a single property, and Map Kit will then automatically display your current location as you move.

In the following Try It Out, you will get started with the Map Kit. In particular, you will use the Map Kit to display your current location on the map.

Get Beginning iPad™ Application Development now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.