BTNLocation Class Reference
| Inherits from | BTNBaseEntity : BTNModelObject |
|---|---|
| Declared in | BTNLocation.h |
Initialization
+ locationWithName:latitude:longitude:
Returns a named location instance.
+ (instancetype)locationWithName:(nullable NSString *)name latitude:(CLLocationDegrees)latitude longitude:(CLLocationDegrees)longitudeParameters
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)longitudeParameters
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)latitudeDiscussion
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)longitudeDiscussion
Sets the longitude of the location (requires a latitude).
Declared In
BTNLocation.h
– setCity:
Sets the city associated with the location.
- (void)setCity:(NSString *)cityDiscussion
Sets the city associated with the location.
Declared In
BTNLocation.h
– setState:
Sets the state associated with the location.
- (void)setState:(NSString *)stateDiscussion
Sets the state associated with the location.
Declared In
BTNLocation.h
– setZip:
Sets the postal code associated with the location.
- (void)setZip:(NSString *)zipDiscussion
Sets the postal code associated with the location.
Declared In
BTNLocation.h
– setCountry:
The country of the location.
- (void)setCountry:(NSString *)countryDiscussion
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 *)addressLineDiscussion
An address line for the location (e.g. 220 E 23rd Street).
Declared In
BTNLocation.h