AI-generated Key Takeaways
-
GMSReverseGeocodeResponsestores the results obtained from a reverse geocode request. -
It provides access to the first result through the
firstResultmethod, returning aGMSAddressobject or nil if no results are found. -
All results, including the first one, can be accessed as an array of
GMSAddressobjects using theresultsmethod.
GMSReverseGeocodeResponse
@interface GMSReverseGeocodeResponse : NSObject <NSCopying>A collection of results from a reverse geocode request.
-
Returns the first result, or nil if no results were available.
Declaration
Swift
func firstResult() -> GMSAddress?Objective-C
- (nullable GMSAddress *)firstResult; -
Returns an array of all the results (contains
GMSAddress), including the first result.Declaration
Swift
func results() -> [GMSAddress]?Objective-C
- (nullable NSArray<GMSAddress *> *)results;