Adding a Map to an App and recording a User’s location as they use the App has become a common must have feature in may of todays popular applications. This presentation will go over the APIs for accomplishing such tasks including map annotations, dragging and dropping custom pins as well as delve into some of the finer aspects of the required location based calculations one needs to consider to find the center of the map or the distance between two points. Additionally the presentation will go over techniques to update a MapView with a moving object as well as positioning the image for the object properly along its heading. This will be a straight forward hands on development presentation with plenty of code examples.
2. Today’s Agenda
Working with MapKit in iOS
Working with CoreLocation in iOS
Battery Performance with GPS
Some Basic GPS Tools for Mac
What to expect with iOS 6
3. Getting Started
Adding MapKit Framework to a Target
Designing a View with MapView
How to Center the MapView to a Location
49. Core Location Data Types
typedef struct {
! CLLocationDegrees latitude;
! CLLocationDegrees longitude;
} CLLocationCoordinate2D;
CLLocationDegrees - is a - double
CLLocationDirection - is a - double
CLLocationDistance - is a - double
CLLocationAccuracy - is a - double
64. Some Basic Tools for Mac
Translating GPS Data
HoudahGPS (based on GPSBabel)
Working with GPS Tracks
myTracks or RouteBuddy
Translating GPS Coordinates
http://maps2.nris.mt.gov/topofinder1/LatLong.asp
The Google Geocoding API
http://code.google.com/apis/maps/documentation/geocoding/