Chapter 17

Geocoding

In This Chapter

arrow Understanding geocoding

arrow Getting a feel for reverse geocoding

arrow Displaying the address of the user’s current location

Being able to see where I am on an iPhone map has visual appeal — that dot is a real nice shade of blue — but I’m an exacting kind of guy who’d like to know exactly where I am in the scheme of things. I’d like to know the street address of where I’m standing, in other words. Geocoding makes that possible. (If I have the address, I can also write some code to turn the iPhone’s current address into an Address Book contact.)

In this chapter, I explain geocoding and have you write the code that will take the user’s current location and turn it into an address that you display in the current location annotation. In the bonus chapter, at www.dummies.com/go/iphoneappdevfd4e, I show you how to take an address or point of interest and forward geocode it so you can display it as an annotation on a map.

Understanding Geocoding on the iPhone

Being able to go from a coordinate on a map to an address is called reverse geocoding, and MapKit is used to supply the ability to do that. But whereas MapKit implements reverse geocoding, forward geocoding ...

Get iPhone® Application Development For Dummies®, 4th Edition 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.