Inherits from SGItem : NSObject
Declared in SGVenue.h

Overview

The SGVenue model wraps individual item results from the /venues endpoint. SGVenue extends from SGItem, which contains properties common to all item types.

Tasks

Performer properties

Helpers

Properties

address

@property (nonatomic, readonly, copy) NSString *address
Discussion

The venue’s street address.

Declared In

SGVenue.h

city

@property (nonatomic, readonly, copy) NSString *city
Discussion

The venue’s city.

Declared In

SGVenue.h

country

@property (nonatomic, readonly, copy) NSString *country
Discussion

The venue’s country.

Declared In

SGVenue.h

displayLocation

@property (nonatomic, readonly, copy) NSString *displayLocation
Discussion

A string of the format “city, state, postalCode” for US/Canada and “city, country” for everywhere else.

Declared In

SGVenue.h

extendedAddress

@property (nonatomic, readonly, copy) NSString *extendedAddress
Discussion

A second line of the venue’s address, if one exists.

Declared In

SGVenue.h

imageURL

@property (nonatomic, readonly, copy) NSString *imageURL
Discussion

A URL for an image of the venue, if one is available.

Declared In

SGVenue.h

location

@property (nonatomic, readonly, assign) CLLocationCoordinate2D location
Discussion

The venue’s location coordinate, if known.

Declared In

SGVenue.h

name

@property (nonatomic, readonly, copy) NSString *name
Discussion

The venue name.

Declared In

SGVenue.h

postalCode

@property (nonatomic, readonly, strong) NSNumber *postalCode
Discussion

The venues postal code.

Declared In

SGVenue.h

slug

@property (nonatomic, readonly, copy) NSString *slug
Discussion

A unique slug#Slug) for the venue.

Declared In

SGVenue.h

state

@property (nonatomic, readonly, copy) NSString *state
Discussion

The venue’s state.

Declared In

SGVenue.h

timezone

@property (nonatomic, readonly, copy) NSString *timezone
Discussion

A timezone string for the venue. eg “America/New_York”.

Declared In

SGVenue.h

Instance Methods

locationIsValid

- (BOOL)locationIsValid
Discussion

Returns YES if the location isn’t {0, 0}.

Declared In

SGVenue.h