Skip to content

Instantly share code, notes, and snippets.

@quinncnl
Last active September 22, 2016 04:41
Show Gist options
  • Save quinncnl/e8a76af9c2927ad2757f2182550da22b to your computer and use it in GitHub Desktop.
Save quinncnl/e8a76af9c2927ad2757f2182550da22b to your computer and use it in GitHub Desktop.
Test if MapKit is using Apple data or AutoNavi data
let geocoder = CLGeocoder()
let appleHQCoord = CLLocation(latitude: 37.331998, longitude: -122.029645)
geocoder.reverseGeocodeLocation(appleHQCoord) { (placemarks, error) in
if (error?.code == 2) {
// using autonavi
}
else {
// using apple map
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment