Skip to content

Instantly share code, notes, and snippets.

@mzeeshanid
Created February 24, 2022 11:25
Show Gist options
  • Save mzeeshanid/9237b89dd655320ae5215cdc9a8ce11f to your computer and use it in GitHub Desktop.
Save mzeeshanid/9237b89dd655320ae5215cdc9a8ce11f to your computer and use it in GitHub Desktop.
GMSGeocoder example
class ReverseGeoCodingViewModel {
func reverseGeoCodeLocation(_ coordinate: CLLocationCoordinate2D,
completion: @escaping GMSReverseGeocodeCallback) {
let geocoder = GMSGeocoder()
geocoder.reverseGeocodeCoordinate(coordinate) { response, error in
completion(response, error)
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment