Learn how to search for a location, get the coordinate, and show information of the coordinate.
- [Instructor] We found an address from a coordinate.…It's now time to find a coordinate…from an address through geocoding…and the geocode address string method.…Head over to the View controller.…You'll find another mark for Find…in our instance methods, and head over there.…Add a new function, including a string…and closure, as parameters.…Going to do func, getCoordinate.…
Our first parameter will be address.…That's going to be string.…Our second will be completionHandler,…and that's going to be an escaping closure.…A CLLocationCoordinate2D.…And that's an optional…string,…an NSError,…and option…returning nothing.…
We'll need a geocoder instance, so instantiate one.…Then add the geocode address string method,…which has a closure that results in an array…of CL place marks, and an error code…which you'll need to process in the closure.…So I'm going to do geocoder.…
Geocode.…Address string…with completion handler.…And that'll be an address, and a completion handler.…We need place marks.…Just like before, and error.…I'll first check if we have an error…
- Getting coordinates from the web
- Working with Core Location data types and regions
- Creating a map in 2D, 3D, satellite, and flyover views
- Adding annotations
- Adding overlays
- Finding the current location
- Tracking heading, speed, and region
- Searching for locations
- Requesting and displaying directions
Skill Level Intermediate
Advanced iOS Development: Working with APIswith Saul Mora1h 59m Intermediate
1. Basic Map and Location Concepts
5. Current Location
6. Heading, Speed, and Regions
Next steps1m 38s
- Mark as unwatched
- Mark all as unwatched
Are you sure you want to mark all the videos in this course as unwatched?
This will not affect your course history, your reports, or your certificates of completion for this course.Cancel
Take notes with your new membership!
Type in the entry box, then click Enter to save your note.
1:30Press on any video thumbnail to jump immediately to the timecode shown.
Notes are saved with you account but can also be exported as plain text, MS Word, PDF, Google Doc, or Evernote.