Skip to content

Instantly share code, notes, and snippets.

@abin0992
Created May 22, 2018 13:01
Show Gist options
  • Save abin0992/04498b47c88c886d52b81943cfc996c6 to your computer and use it in GitHub Desktop.
Save abin0992/04498b47c88c886d52b81943cfc996c6 to your computer and use it in GitHub Desktop.
Values which are correctly calculated
Source : CLLocationCoordinate2D(latitude: 42.523261499999997, longitude: 27.432378400000001)
Destination: CLLocationCoordinate2D(latitude: 50.418807999999999, longitude: 30.490086000000002)
Bearing --> 13.8377869254834
Source : CLLocationCoordinate2D(latitude: 40.852899700000002, longitude: 14.332884999999999)
Destination: CLLocationCoordinate2D(latitude: 50.761059600000003, longitude: 8.1405194000000005)
Bearing --> 338.642009521122
Source : CLLocationCoordinate2D(latitude: 40.852899700000002, longitude: 14.332884999999999)
Destination: CLLocationCoordinate2D(latitude: 50.761059600000003, longitude: 8.1405194000000005)
Bearing --> 338.642009521122
Value of MKPolyline crossing 180th Meridian which is calculated wrong
Source : CLLocationCoordinate2D(latitude: -33.8392932, longitude: 151.21519799999999)
Destination: CLLocationCoordinate2D(latitude: 39.645516999999998, longitude: -104.598724)
Bearing --> 60.3544890113365
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment