Skip to content

Instantly share code, notes, and snippets.

View sungkim23's full-sized avatar

Sung Min Kim sungkim23

  • CDMX
View GitHub Profile
/**
Calculate initial compass bearing between two locations
- parameter fromLocation: Source Location
- parameter toLocation: Destination Location
- returns: bearing (CLLocationDirection)
*/
private func bearingFromLocation(fromLocation: CLLocation, toLocation: CLLocation) -> CLLocationDirection {