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

Unlock the full course today

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

Location accuracy

Location accuracy - iOS Tutorial

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

Start my 1-month free trial

Location accuracy

- [Instructor] After looking at the Neat Simulator data, it's time to get a little more messy. Real sensors are not as nice. To show you the problem, we'll edit annotation in your location services delegate, did update locations. Add the following two lines of code. Let pizza pin equal a pizza annotation. The coordinate will be coordinate 2D. We'll use a display string for a title. We'll have a blank subtitle, and then add that annotation. If you a device connected, select the device to run. Run on your device, go ahead and press the Here button once it comes up. Since it's the first time you've run it, it'll ask if you want to allow location services, and you're going to say Allow. Hit Here again. It's likely you'll see the one location dot surrounded by several pizza pins or hidden by it as in my case. This is drift, an unavoidable problem with location-finding on a phone. I can zoom in here a little bit. You can see there's more than one pin there, but where I am, it's a little bit…

Contents