LULocation Class Reference
| Inherits from | LUAPIModel : NSObject |
| Conforms to | MKAnnotation |
| Declared in | LULocation.h LULocation.m |
Overview
A LevelUp merchant has one or more locations. Take the example of a chain restaurant with multiple
franchises. This restaurant would have a single merchant associated with it, but each store would
have its own LULocation.
MapKit
LULocation implements the MKAnnotation protocol. This provides annotation-related information
to a map view. The title of the annotation is the result of fullStreetAddress.
Tasks
-
categoryIDsproperty -
descriptionHTMLproperty -
extendedAddressproperty -
hoursproperty -
latitudeproperty -
localityproperty -
locationIDproperty -
longitudeproperty -
merchantIDproperty -
merchantNameproperty -
nameproperty -
phoneproperty -
postalCodeproperty -
regionproperty -
shownproperty -
summaryproperty -
streetAddressproperty -
updatedAtDateproperty -
webLocationsproperty -
– fullStreetAddress -
– imageURL -
– location -
– singleLineAddress
Properties
categoryIDs
An array of category IDs to which this location belongs.
@property (nonatomic, copy, readonly) NSArray *categoryIDsDiscussion
An array of category IDs to which this location belongs.
Declared In
LULocation.hdescriptionHTML
An HTML string describing the location
@property (nonatomic, copy, readonly) NSString *descriptionHTMLDiscussion
An HTML string describing the location
Declared In
LULocation.hextendedAddress
An optional “extended” address for the location. An example would be an apartment number.
@property (nonatomic, copy, readonly) NSString *extendedAddressDiscussion
An optional “extended” address for the location. An example would be an apartment number.
Declared In
LULocation.hhours
An optional string representing the hours during which this location is open. The format of this string is determined by the location.
@property (nonatomic, copy, readonly) NSString *hoursDiscussion
An optional string representing the hours during which this location is open. The format of this string is determined by the location.
Declared In
LULocation.hlatitude
The latitude of the location.
@property (nonatomic, copy, readonly) NSNumber *latitudeDiscussion
The latitude of the location.
Declared In
LULocation.hlocality
The location’s town or city.
@property (nonatomic, copy, readonly) NSString *localityDiscussion
The location’s town or city.
Declared In
LULocation.hlocationID
The unique identifier for this location.
@property (nonatomic, copy, readonly) NSNumber *locationIDDiscussion
The unique identifier for this location.
Declared In
LULocation.hlongitude
The longitude of the location.
@property (nonatomic, copy, readonly) NSNumber *longitudeDiscussion
The longitude of the location.
Declared In
LULocation.hmerchantID
The ID of this location’s merchant.
@property (nonatomic, copy) NSNumber *merchantIDDiscussion
The ID of this location’s merchant.
Declared In
LULocation.hmerchantName
The location’s merchant’s name.
@property (nonatomic, copy) NSString *merchantNameDiscussion
The location’s merchant’s name.
Declared In
LULocation.hname
The location’s name.
@property (nonatomic, copy, readonly) NSString *nameDiscussion
The location’s name.
Declared In
LULocation.hphone
An optional phone number for the location.
@property (nonatomic, copy, readonly) NSString *phoneDiscussion
An optional phone number for the location.
Declared In
LULocation.hpostalCode
The location’s postal code.
@property (nonatomic, copy, readonly) NSString *postalCodeDiscussion
The location’s postal code.
Declared In
LULocation.hregion
The location’s region, such as a state or province.
@property (nonatomic, copy, readonly) NSString *regionDiscussion
The location’s region, such as a state or province.
Declared In
LULocation.hshown
If shown is set to NO, then this location should not be displayed in-app.
@property (nonatomic, assign) BOOL shownDiscussion
If shown is set to NO, then this location should not be displayed in-app.
Declared In
LULocation.hstreetAddress
The location’s address. If the location’s address has a second line (such as an apartment number),
this will be stored separately in the extendedAddress field.
@property (nonatomic, copy, readonly) NSString *streetAddressDiscussion
The location’s address. If the location’s address has a second line (such as an apartment number),
this will be stored separately in the extendedAddress field.
Declared In
LULocation.hsummary
Specifies if this instance of LULocation is only a summary. If it is, then only categoryIDs,
latitude, locationID, longitude, merchantName, merchantID, shown and updatedAtDate
will be set.
@property (nonatomic, assign) BOOL summaryDiscussion
Specifies if this instance of LULocation is only a summary. If it is, then only categoryIDs,
latitude, locationID, longitude, merchantName, merchantID, shown and updatedAtDate
will be set.
Declared In
LULocation.hupdatedAtDate
The time that this location was last changed on the server.
@property (nonatomic, copy) NSDate *updatedAtDateDiscussion
The time that this location was last changed on the server.
Declared In
LULocation.hwebLocations
An instance of LUWebLocations, which holds the associated web locations for this physical location. (Deprecated: This method has been deprecated. Request web links at a location using
[LULocationRequestFactory requestForWebLinksAtLocationWithID:].)
@property (nonatomic, copy, readonly) LUWebLocations *webLocationsDiscussion
An instance of LUWebLocations, which holds the associated web locations for this physical location.
Declared In
LULocation.hInstance Methods
fullStreetAddress
If the location has both a streetAddress and an extendedAddress, this will return both values
joined by a comma. For example, “123 Main Street, Apt 2A”. When an extendedAddress is not present,
only the streetAddress will be returned.
- (NSString *)fullStreetAddressDiscussion
If the location has both a streetAddress and an extendedAddress, this will return both values
joined by a comma. For example, “123 Main Street, Apt 2A”. When an extendedAddress is not present,
only the streetAddress will be returned.
Declared In
LULocation.himageURL
An associated image for the location. Will automatically return a retina or non-retina scaled image based on the screen scale of the device. The resolution is 320x212.
- (NSURL *)imageURLDiscussion
An associated image for the location. Will automatically return a retina or non-retina scaled image based on the screen scale of the device. The resolution is 320x212.
Declared In
LULocation.hlocation
A CLLocation instance associated with this location.
- (CLLocation *)locationDiscussion
A CLLocation instance associated with this location.
Declared In
LULocation.hsingleLineAddress
A helper method which returns all the address fields in one line. The format is
“
- (NSString *)singleLineAddressDiscussion
A helper method which returns all the address fields in one line. The format is
“
Declared In
LULocation.h