AI-generated Key Takeaways
-
GMSReverseGeocodeResponse
stores the results from a reverse geocode request, which translates coordinates into addresses. -
It provides access to the first result using
firstResult()
and an array of all results viaresults()
. -
Both
firstResult()
andresults()
can return nil or an empty array if the reverse geocode request yielded no results. -
The results themselves are represented by
GMSAddress
objects containing detailed address information.
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;