SCPAddress
Objective-C
@interface SCPAddress : NSObject <SCPJSONDecodable>
Swift
class Address : NSObject, JSONDecodable
Holds address data associated with a given SCPLocation
.
You cannot create SCPAddress
objects from within the SDK. Instead, they will
be returned as an address
property on an SCPLocation
object retrieved
by the SDK.
See
SCPLocation
-
The city name
Declaration
Objective-C
@property (nonatomic, copy, readonly, nullable) NSString *city;
Swift
var city: String? { get }
-
The country code
Declaration
Objective-C
@property (nonatomic, copy, readonly, nullable) NSString *country;
Swift
var country: String? { get }
-
The first line of the address
Declaration
Objective-C
@property (nonatomic, copy, readonly, nullable) NSString *line1;
Swift
var line1: String? { get }
-
The second line of the address
Declaration
Objective-C
@property (nonatomic, copy, readonly, nullable) NSString *line2;
Swift
var line2: String? { get }
-
The postal code of the address
Declaration
Objective-C
@property (nonatomic, copy, readonly, nullable) NSString *postalCode;
Swift
var postalCode: String? { get }
-
The state of the address
Declaration
Objective-C
@property (nonatomic, copy, readonly, nullable) NSString *state;
Swift
var state: String? { get }
-
Unavailable
You cannot directly instantiate this class.
Declaration
Objective-C
- (nonnull instancetype)init;
-
Unavailable
You cannot directly instantiate this class.
Declaration
Objective-C
+ (nonnull instancetype)new;