RadarPlace

@interface RadarPlace : NSObject

Represents a place. For more information about Places, see https://radar.io/documentation/places.

  • _id

    The Radar ID of the place.

    Declaration

    Objective-C

    @property (readonly, copy, nonatomic, nonnull) NSString *_id;

    Swift

    var _id: String { get }
  • The Facebook page ID of the place, if known.

    Declaration

    Objective-C

    @property (readonly, copy, nonatomic, nullable) NSString *facebookId;

    Swift

    var facebookId: String? { get }
  • The Facebook page ID of the place, if known.

    Declaration

    Objective-C

    @property (readonly, copy, nonatomic, nullable) NSString *facebookPlaceId;

    Swift

    var facebookPlaceId: String? { get }
  • The name of the place.

    Declaration

    Objective-C

    @property (readonly, copy, nonatomic, nonnull) NSString *name;

    Swift

    var name: String { get }
  • The categories of the place. For a full list of categories, see https://radar.io/documentation/places/categories.

    Declaration

    Objective-C

    @property (readonly, copy, nonatomic, 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.io/documentation/places/chains.

    Declaration

    Objective-C

    @property (readonly, strong, nonatomic, nullable) RadarChain *chain;

    Swift

    var chain: RadarChain? { get }
  • The location of the place.

    Declaration

    Objective-C

    @property (readonly, strong, nonatomic, nonnull) RadarCoordinate *location;

    Swift

    var location: RadarCoordinate { get }
  • The group for the place, if any. For a full list of groups, see https://radar.io/documentation/places/groups.

    Declaration

    Objective-C

    @property (readonly, strong, nonatomic, 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.io/documentation/places/groups.

    Declaration

    Objective-C

    @property (readonly, strong, nonatomic, 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 the 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. *