How to create a pedometer iOS app?

Can someone get me started on creating an app that measures the distance a person walks and also tracks where they walk? I need to know which part of the documentation to look through. I believe I would use MapKit and Core Location. I just need to know more specifically where to look in the documentation to those frameworks.