BTNLocation Class Reference

Inherits from BTNBaseEntity : BTNModelObject
Declared in BTNLocation.h

Overview

All fields are optional and should be populated only if known.

Initialization

+ locationWithName:latitude:longitude:

Returns a named location instance.

+ (instancetype)locationWithName:(nullable NSString *)name latitude:(CLLocationDegrees)latitude longitude:(CLLocationDegrees)longitude

Parameters

name

The displayable name of the location.

latitude

The latitude of the location.

longitude

The longitude of the location.

Discussion

Returns a named location instance.

Declared In

BTNLocation.h

+ locationWithLatitude:longitude:

Returns a location instance.

+ (instancetype)locationWithLatitude:(CLLocationDegrees)latitude longitude:(CLLocationDegrees)longitude

Parameters

latitude

The latitude of the location.

longitude

The longitude of the location.

Discussion

Returns a location instance.

Declared In

BTNLocation.h

Configuration

– setLatitude:

Sets the latitude of the location (requires a longitude).

- (void)setLatitude:(CLLocationDegrees)latitude

Discussion

Sets the latitude of the location (requires a longitude).

Declared In

BTNLocation.h

– setLongitude:

Sets the longitude of the location (requires a latitude).

- (void)setLongitude:(CLLocationDegrees)longitude

Discussion

Sets the longitude of the location (requires a latitude).

Declared In

BTNLocation.h

– setCity:

Sets the city associated with the location.

- (void)setCity:(NSString *)city

Discussion

Sets the city associated with the location.

Declared In

BTNLocation.h

– setState:

Sets the state associated with the location.

- (void)setState:(NSString *)state

Discussion

Sets the state associated with the location.

Declared In

BTNLocation.h

– setZip:

Sets the postal code associated with the location.

- (void)setZip:(NSString *)zip

Discussion

Sets the postal code associated with the location.

Declared In

BTNLocation.h

– setCountry:

The country of the location.

- (void)setCountry:(NSString *)country

Discussion

The country of the location.

Declared In

BTNLocation.h

– setAddressLine:

An address line for the location (e.g. 220 E 23rd Street).

- (void)setAddressLine:(NSString *)addressLine

Discussion

An address line for the location (e.g. 220 E 23rd Street).

Declared In

BTNLocation.h