Skip to content

Instantly share code, notes, and snippets.

View NxSoftware's full-sized avatar

Steve Wilford NxSoftware

View GitHub Profile
@NxSoftware
NxSoftware / Geocoder.swift
Created February 4, 2019 14:25
Swift Geocoder
let geocoder = CLGeocoder()
let location = CLLocation(latitude: 47.640320, longitude: -122.134400)
geocoder.reverseGeocodeLocation(location) { (addressList, error) in
if let error = error {
print("Unable to Reverse Geocode Location (\(error))")
} else {
print(addressList?.first?.compactAddress ?? "No Matching Addresses Found")
}
}