Core Location. Chapter 18 of the iOS5 Begineer's Book.