Skip to main content
RadarPlace represents a place. Learn more about Places.

Properties

String
required
The Radar ID of the place.
String
required
The name of the place.
Array<String>
required
The categories of the place. For a full list of categories, see Place Categories.
RadarChain
The chain of the place, if known. May be nil for places without a chain. For a full list of chains, see Place Chains.
RadarCoordinate
required
The location of the place.
String
The group for the place, if any. For a full list of groups, see Place Groups.
NSDictionary
The metadata for the place, if part of a group. For details of metadata fields see Place Groups.
RadarAddress
The address of the place.

Methods

isChain

Returns a boolean indicating whether the place is part of the specified chain. Parameters:
  • slug - The chain slug to check
Returns: true if the place is part of the specified chain, false otherwise.

hasCategory

Returns a boolean indicating whether the place has the specified category. Parameters:
  • category - The category to check
Returns: true if the place has the specified category, false otherwise.

arrayForPlaces

Converts an array of RadarPlace objects to an array of dictionaries.

dictionaryValue

Returns the dictionary representation of the place.

Example