RadarPlace
Objective-C
@interface RadarPlace : NSObject
Swift
class RadarPlace : NSObject
Represents a place.
-
The Radar ID of the place.
Declaration
Objective-C
@property (nonatomic, copy, readonly, nonnull) NSString *_id;
Swift
var _id: String { get }
-
The name of the place.
Declaration
Objective-C
@property (nonatomic, copy, readonly, nonnull) NSString *name;
Swift
var name: String { get }
-
The categories of the place. For a full list of categories, see https://radar.com/documentation/places/categories.
Declaration
Objective-C
@property (nonatomic, copy, readonly, nonnull) NSArray<NSString *> *categories;
Swift
var categories: [String] { get }
-
The chain of the place, if known. May be
nil
for places without a chain. For a full list of chains, see https://radar.com/documentation/places/chains.Declaration
Objective-C
@property (nonatomic, strong, readonly, nullable) RadarChain *chain;
Swift
var chain: RadarChain? { get }
-
The location of the place.
Declaration
Objective-C
@property (nonatomic, strong, readonly, nonnull) RadarCoordinate *location;
Swift
var location: RadarCoordinate { get }
-
The group for the place, if any. For a full list of groups, see https://radar.com/documentation/places/groups.
Declaration
Objective-C
@property (nonatomic, strong, readonly, nullable) NSString *group;
Swift
var group: String? { get }
-
The metadata for the place, if part of a group. For details of metadata fields see https://radar.com/documentation/places/groups.
Declaration
Objective-C
@property (nonatomic, strong, readonly, nullable) NSDictionary *metadata;
Swift
var metadata: [AnyHashable : Any]? { get }
-
Returns a boolean indicating whether the place is part of the specified chain.
Declaration
Objective-C
- (BOOL)isChain:(NSString *_Nullable)slug;
Swift
func isChain(_ slug: String?) -> Bool
Return Value
A boolean indicating whether the place is part of the specified chain. *
-
Returns a boolean indicating whether the place has the specified category.
Declaration
Objective-C
- (BOOL)hasCategory:(NSString *_Nullable)category;
Swift
func hasCategory(_ category: String?) -> Bool
Return Value
A boolean indicating whether the place has the specified category. *