GMSAddressComponent.h 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. //
  2. // GMSAddressComponent.h
  3. // Google Places SDK for iOS
  4. //
  5. // Copyright 2016 Google LLC
  6. //
  7. // Usage of this SDK is subject to the Google Maps/Google Earth APIs Terms of
  8. // Service: https://developers.google.com/maps/terms
  9. //
  10. #import <Foundation/Foundation.h>
  11. #import "GMSPlacesDeprecationUtils.h"
  12. NS_ASSUME_NONNULL_BEGIN
  13. /**
  14. * Represents a component of an address, e.g., street number, postcode, city, etc.
  15. */
  16. @interface GMSAddressComponent : NSObject
  17. /**
  18. * Type of the address component. For a list of supported types, see
  19. * https://developers.google.com/places/ios-sdk/supported_types#table2. This string will be one
  20. * of the constants defined in GMSPlaceTypes.h.
  21. */
  22. @property(nonatomic, readonly, copy) NSString *type __GMS_AVAILABLE_BUT_DEPRECATED_MSG(
  23. "type property is deprecated in favor of types");
  24. /**
  25. * Types associated with the address component. For a list of supported types, see
  26. * https://developers.google.com/places/ios-sdk/supported_types#table2. This array will contain
  27. * one or more of the constants strings defined in GMSPlaceTypes.h.
  28. */
  29. @property(nonatomic, readonly, strong) NSArray<NSString *> *types;
  30. /** Name of the address component, e.g. "Sydney" */
  31. @property(nonatomic, readonly, copy) NSString *name;
  32. /** Short name of the address component, e.g. "AU" */
  33. @property(nonatomic, readonly, copy) NSString *_Nullable shortName;
  34. @end
  35. NS_ASSUME_NONNULL_END