From the course: Advanced iOS App Development: MapKit & Core Location

Unlock the full course today

Join today to access over 22,400 courses taught by industry experts or purchase this course individually.

Geocoding and placemark data

Geocoding and placemark data - iOS Tutorial

From the course: Advanced iOS App Development: MapKit & Core Location

Start my 1-month free trial

Geocoding and placemark data

- [Instructor] You've learned how to use core location to find location on a device and display that location those locations are latitudes and longitudes, which aren't very user friendly to most people. You want something a bit more understandable, like the address 2121 North Park Street Chicago, Illinois, USA. We can do this with the CL Geocoder object. CL Geocoder objects works with another object, a CL placemark. CL Placemarks have many properties, including street address city, state or province, postal code and country. I'll use the city, state and country in the detail for the annotations. Let's go over to the annotation detail view controller, and we'll code in there, and we're going to start by adding a new function. And it'll be called placemark. It will consist of an annotation of pizza annotation, and a completion handler. That has a CL placemark with an optional. And guess what? You get a little error here. Two guesses why we didn't get the error, or we got that error…

Contents