Venue

open class Venue
extension Venue: Hashable
extension Venue: Equatable

Venue is a specific place (like a mall) with one or more maps (typically representing different floors) and locations (stores, washrooms, elevators, etc).

Each Location is linked to:

  • zero or more Polygons which represent its physical presence on the map
  • zero or more nodes that represent entrances
  • zero or more Categories that group several Locations together

A Venue can be in one of two states:

  1. As returned by getVenues() - When it’s initially pulled from the Mappedin API as part of a list of all venues your credentials have access to, it only contains basic information.
  2. As returned by getVenue() - When you retrieve the full details of a given venue, the locations, categories, maps, etc will be populated.
  • A unique identify

    Declaration

    Swift

    public let slug: String
  • Name of the venue

    Declaration

    Swift

    public let name: String
  • The address of the Venue, if specified.

    Declaration

    Swift

    public let address: String
  • The city the Venue is located in, if specified.

    Declaration

    Swift

    public let city: String
  • The state/province the Venue is located in, if specified.

    Declaration

    Swift

    public let state: String
  • The code for the country the Venue is located in, if specified.

    Declaration

    Swift

    public let countryCode: String
  • The postal code for the Venue, if specified.

    Declaration

    Swift

    public let postal: String
  • The default language code for the Venue, if specified.

    Declaration

    Swift

    public let defaultLanguage: String
  • An array of codes for supported languages for the Venue.

    Declaration

    Swift

    public let languageCodes: [String]
  • A collection of maps that are children

    Declaration

    Swift

    public var maps: [Map]
  • A collection of categories that are children of the venue

    Declaration

    Swift

    public var categories: [Category]
  • A collection of locations that are children of the venue

    Declaration

    Swift

    public var locations: [Location]
  • A collection of links between map locations

    Declaration

    Swift

    public var connections: [Connection]
  • A search provider to allow for finding of various locations and or events from the venue.

    Declaration

    Swift

    public var search: Search!
  • Initialize a Venue from the buffer.

    This is typically only called if you have expanded on the Venue class with your own logic, and need to fully initialize the base class.

    Declaration

    Swift

    public required init(inflate venueListing: VenueListing,
                         with buffer: inout BinaryDecoder) throws

    Parameters

    venueListing

    The VenueListing used to download this buffer this contains some unique identifiers that need to be copied into the Venue to fully initialize it.

    buffer

    The buffer in which we will read the contents of the Venue from.