SITBuilding

Objective-C

@interface SITBuilding : SITResource

Swift

class SITBuilding : SITResource

Provides information about the places where indoor location is supported.

Initializers

  • 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

    createdAt

    Creation date

    updatedAt

    Last updated date

    customFields

    Key-value pairs that can be used to store information

    userIdentifier

    Identifier of the user who creates the building

    name

    Name if the building

    center

    Cartesian coordinates of the center of the building

    info

    String containing additional information

    dimensions

    Structure containing the widht and height of the building

    rotation

    Rotation angle of the building’s base, relative to the west-east axis, increasing in counter-clockwise, being 0 the west-east axis.

    pictureURL

    URL of the building image

    pictureThumbURL

    URL of the thumbnail building image

    Return Value

    SITBuilding

Properties

  • 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 }
  • Rotation angle of the building’s base, relative to the west-east axis, increasing in counter-clockwise, being 0 the west-east axis.

    Declaration

    Objective-C

    @property (nonatomic, strong) SITAngle *_Nonnull rotation;

    Swift

    var rotation: SITAngle { get set }
  • URL of the building image

    Declaration

    Objective-C

    @property (nonatomic, strong) SITURL *_Nonnull pictureURL;

    Swift

    var pictureURL: SITURL { get set }
  • URL of the thumbnail building image

    Declaration

    Objective-C

    @property (nonatomic, strong) SITURL *_Nonnull pictureThumbURL;

    Swift

    var pictureThumbURL: SITURL { get set }

Methods

  • Compute corners of this building, without rotation, in earth coordinates.

    Declaration

    Objective-C

    - (SITBounds)bounds;

    Swift

    func bounds() -> SITBounds

    Return Value

    SITBounds

  • Compute corners of this building, with rotation, in earth coordinates.

    Declaration

    Objective-C

    - (SITBounds)rotatedBounds;

    Swift

    func rotatedBounds() -> SITBounds

    Return Value

    SITBounds

  • Size of the building

    Declaration

    Objective-C

    - (SITDimensions *_Nonnull)dimensions;

    Swift

    func dimensions() -> SITDimensions

    Return Value

    SITDimensions structure containing the widht and height of the building

  • Geographical coordinate of the building

    Declaration

    Objective-C

    - (CLLocationCoordinate2D)center;

    Swift

    func center() -> CLLocationCoordinate2D

    Return Value

    CLLocationCoordinate2D