Created
February 24, 2022 11:25
-
-
Save mzeeshanid/9237b89dd655320ae5215cdc9a8ce11f to your computer and use it in GitHub Desktop.
GMSGeocoder example
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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