MIT License

1 image



A category with convenient methods for CLLocation.

Initialize with latitude and longitude in radians

Initialize with a pretty string format (e.g. latitude = @"34° 36' 12\" N" longitude = @"35° 12' 24\" W")

Obtain coordinates in a pretty format

Distance between coordinates using haversine, spherical law of cosines, pythagoras, rhumb line formulas

Midpoint along a great circle path between coordinates

Initial/final bearings to target location from source location

Calculate target location with a given distance and bearing from source location


Sponsored with ❤️ by Instabug

Instabug: Understand how your app is doing with real-time contextual insights from your users

Get all the logs you need and fix bugs, crashes, and other issues in minutes instead of days. With Instabug you will automatically receive device data, network logs, and reproduction steps with every bug and crash report. It only takes a line of code to integrate and is perfect for teams that are now working remotely. See more detailed features comparison and try Instabug for free here.

Get Started Now