SITBuilding
Objective-C
@interface SITBuilding : SITResource
Swift
class SITBuilding : SITResource
Provides information about the places where indoor location is supported.
-
-initWithIdentifier:createdAt: updatedAt: customFields: userIdentifier: name: center: info: dimensions: rotation: pictureURL: pictureThumbURL: Initializer method
Declaration
Objective-C
- (instancetype _Nonnull)initWithIdentifier:(NSString *_Nonnull)identifier createdAt:(NSDate *_Nonnull)createdAt updatedAt:(NSDate *_Nonnull)updatedAt customFields:(NSDictionary *_Nonnull)customFields userIdentifier:(NSString *_Nonnull)userIdentifier name:(NSString *_Nonnull)name center:(CLLocationCoordinate2D)center info:(NSString *_Nonnull)info dimensions:(SITDimensions *_Nonnull)dimensions rotation:(SITAngle *_Nonnull)rotation pictureURL:(SITURL *_Nonnull)pictureURL pictureThumbURL:(SITURL *_Nonnull)pictureThumbURL;Swift
init(identifier: String, createdAt: Date, updatedAt: Date, customFields: [AnyHashable : Any], userIdentifier: String, name: String, center: CLLocationCoordinate2D, info: String, dimensions: SITDimensions, rotation: SITAngle, pictureURL: SITURL, pictureThumbURL: SITURL)Parameters
createdAtCreation date
updatedAtLast updated date
customFieldsKey-value pairs that can be used to store information
userIdentifierIdentifier of the user who creates the building
nameName if the building
centerCartesian coordinates of the center of the building
infoString containing additional information
dimensionsStructure containing the widht and height of the building
rotationRotation angle of the building’s base, relative to the west-east axis, increasing in counter-clockwise, being 0 the west-east axis.
pictureURLURL of the building image
pictureThumbURLURL of the thumbnail building image
Return Value
SITBuilding
-
Identifier of the user who created the building
Declaration
Objective-C
@property (nonatomic, strong) NSString *_Nonnull userIdentifier;Swift
var userIdentifier: String { get set } -
Name of the building.
Declaration
Objective-C
@property (nonatomic, strong) NSString *_Nonnull name;Swift
var name: String { get set } -
Address of the building.
Declaration
Objective-C
@property (nonatomic, strong) NSString *_Nonnull address;Swift
var address: String { get set } -
Detailed information in HTML format
Declaration
Objective-C
@property (nonatomic, strong) NSString *_Nonnull infoHTML;Swift
var infoHTML: String { get set }
-
Size of the building
Declaration
Objective-C
- (SITDimensions *_Nonnull)dimensions;Swift
func dimensions() -> SITDimensionsReturn Value
SITDimensionsstructure containing the widht and height of the building -
Geographical coordinate of the building
Declaration
Objective-C
- (CLLocationCoordinate2D)center;Swift
func center() -> CLLocationCoordinate2DReturn Value
CLLocationCoordinate2D