PerspecDev Blog

Stuff we know stuff about.

Using CoreLocation (GPS) on iOS to Track a User’s Distance and Speed

There are tons of great tutorials online for using CoreLocation. Apple even provides some sample code. So why am I bothering to write this article? Because all the existing tutorials focus on getting the user’s longitude and latitude, but none actually show you how to get the user’s travelled distance or speed. With that in mind, here are the main goals for the project we’ll be creating:

  • Determine the user’s travelled distance
  • Determine the user’s current speed
  • Determine GPS “signal” strength
  • Generate waypoints that can be saved and later used to recreate a user’s path