GMSGeocoder
@interface GMSGeocoder : NSObjectExposes a service for reverse geocoding. This maps Earth coordinates (latitude and longitude) to a collection of addresses near that coordinate.
-
Declaration
Objective-C
+ (GMSGeocoder *)geocoder; -
Reverse geocodes a coordinate on the Earth’s surface.
Declaration
Swift
func reverseGeocodeCoordinate(_ coordinate: CLLocationCoordinate2D) async throws -> GMSReverseGeocodeResponseObjective-C
- (void)reverseGeocodeCoordinate:(CLLocationCoordinate2D)coordinate completionHandler:(nonnull GMSReverseGeocodeCallback)handler;Parameters
coordinateThe coordinate to reverse geocode.
handlerThe callback to invoke with the reverse geocode results. The callback will be invoked asynchronously from the main thread.