Skip to content

Instantly share code, notes, and snippets.

@abin0992
Created May 22, 2018 11:59
Show Gist options
  • Save abin0992/ea1a49e02b4cbebbcfb9909faa69e0e8 to your computer and use it in GitHub Desktop.
Save abin0992/ea1a49e02b4cbebbcfb9909faa69e0e8 to your computer and use it in GitHub Desktop.
Values which are correctly calculated
//1
Source : CLLocationCoordinate2D(latitude: 39.982261000000001, longitude: 32.555914899999998)
Destination: CLLocationCoordinate2D(latitude: 50.761059600000003, longitude: 8.1405194000000005)
Bearing --> 3.70469770806337
//2
Source : CLLocationCoordinate2D(latitude: -26.073920000000001, longitude: 28.235959999999999)
Destination: CLLocationCoordinate2D(latitude: 40.852899700000002, longitude: 14.332884999999999)
Bearing --> 4.5212638634624
//3
Source : CLLocationCoordinate2D(latitude: -33.577585599999999, longitude: -70.696103600000001)
Destination: CLLocationCoordinate2D(latitude: 37.804223, longitude: -122.31037600000001)
Bearing --> 4.1192879321650
Value of MKPolyline crossing 180th Meridian which is calculated wrong
//4
Source : CLLocationCoordinate2D(latitude: -33.8392932, longitude: 151.21519799999999)
Destination: CLLocationCoordinate2D(latitude: 39.645516999999998, longitude: -104.598724)
Bearing --> 3.44200329096279
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment