AI-generated Key Takeaways
- 
          GMSAddressstores human-readable address information obtained from reverse geocoding requests usingGMSGeocoder.
- 
          It contains properties like coordinate,thoroughfare,locality,country, and more representing different address components.
- 
          The linesproperty provides an array of formatted address lines for display purposes.
- 
          Deprecated methods addressLine1andaddressLine2should be replaced with thelinesproperty.
- 
          GMSAddressinstances are immutable and should not be directly instantiated except in testing scenarios.
GMSAddress
@interface GMSAddress : NSObject <NSCopying, NSSecureCoding>A result from a reverse geocode request, containing a human-readable address. This class is
 immutable and should not be instantiated directly unless under testing circumstances. Obtain an
 instance via GMSGeocoder.
Some of the fields may be nil, indicating they are not present.
- 
                  
                  Location, or kLocationCoordinate2DInvalid if unknown. DeclarationSwift var coordinate: CLLocationCoordinate2D { get }Objective-C @property (nonatomic, readonly) CLLocationCoordinate2D coordinate;
- 
                  
                  Street number and name. DeclarationSwift var thoroughfare: String? { get }Objective-C @property (nonatomic, copy, readonly, nullable) NSString *thoroughfare;
- 
                  
                  Locality or city. DeclarationSwift var locality: String? { get }Objective-C @property (nonatomic, copy, readonly, nullable) NSString *locality;
- 
                  
                  Subdivision of locality, district or park. DeclarationSwift var subLocality: String? { get }Objective-C @property (nonatomic, copy, readonly, nullable) NSString *subLocality;
- 
                  
                  Region/State/Administrative area. DeclarationSwift var administrativeArea: String? { get }Objective-C @property (nonatomic, copy, readonly, nullable) NSString *administrativeArea;
- 
                  
                  Postal/Zip code. DeclarationSwift var postalCode: String? { get }Objective-C @property (nonatomic, copy, readonly, nullable) NSString *postalCode;
- 
                  
                  The country name. DeclarationSwift var country: String? { get }Objective-C @property (nonatomic, copy, readonly, nullable) NSString *country;
- 
                  
                  An array of NSStringcontaining formatted lines of the address. May be nil.DeclarationSwift var lines: [String]? { get }Objective-C @property (nonatomic, copy, readonly, nullable) NSArray<NSString *> *lines;
- 
                  
                  Deprecated This method is obsolete and will be removed in a future release. Use the lines property instead. Returns the first line of the address. DeclarationSwift func addressLine1() -> String?Objective-C - (nullable NSString *)addressLine1;
- 
                  
                  Deprecated This method is obsolete and will be removed in a future release. Use the lines property instead. Returns the second line of the address. DeclarationSwift func addressLine2() -> String?Objective-C - (nullable NSString *)addressLine2;