Learn about regions and the CLcircularRegion. The author introduces some of the uses of regions.
- [Narrator] As you set up our maps,…you'll find maps require a region.…Regions define an area of a map.…Regions have two uses, for displaying maps,…and detecting a user's proximity to a location.…The first region you'll use, you'll find in MapKit.…In MapKit, this is a rectangular visible area of a map.…Since device screens are rectangular,…they create a rectangle, and set scaling for the map.…This region has a type of MKCoordinateRegion.…
There's two class methods to get the region.…Both use a center coordinate.…The first uses the differences in latitude and longitude…to define the region. MKCoordinateSpan.…The easier on for our purposes is the function…MKCoordinateRegion make with distance,…where you can set a distance in meters…for latitude and longitude.…The second kind of region you'll deal with…is a CoreLocation Region.…This is not rectangular, but circular.…
CoreLocation regions also have a center point…as a CL location coordinate 2D,…but only a radius from the point.…This is to detect if a user is near the coordinate…
- 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
iOS App Development: Test-Driven Developmentwith Harrison Ferrone2h 14m 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.