Add coordinates and regions to the map to display a specific place on the map.
- [Instructor] We have a map that doesn't do much yet.…We'd like to display a coordinate on our map.…The quick way to do that is using a coordinate region.…Close the app.…Close the assistant editor,…and head over to the view controller.…We'll need some coordinates.…To save you some time, I added the five pizza restaurants…we'll be working with…and two from the challenge work you did earlier.…If you did not download the starter file,…pause the video for a moment and copy these into a comment.…
Coordinate regions have three parameters.…There's a center coordinate and two distance coordinates.…One for latitude and one for longitude.…Set the coordinate like this above the outlet.…There, coordinate2D = CLLocationCoordinate2DMake…and it has a latitude and a longitude.…Add the latitude and longitude…by cutting and pasting from the Naples coordinates.…
The way I tend to do this is I copy the coordinates…and just paste them in here.…For the distances, you can specify these…as degrees latitudes or in meters.…Xcode uses these distances…
- 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 Advanced
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.