SITExternalLocation

Objective-C

@interface SITExternalLocation : NSObject

Swift

class SITExternalLocation : NSObject

Describes a external location to be inyected to the sdk.

  • Building identifier of the external location

    Declaration

    Objective-C

    @property (nonatomic, readonly) NSString *_Nonnull buildingIdentifier;

    Swift

    var buildingIdentifier: String { get }
  • Floor identifier of the external location

    Declaration

    Objective-C

    @property (nonatomic, readonly) NSString *_Nonnull floorIdentifier;

    Swift

    var floorIdentifier: String { get }
  • Coordinate of the external location

    Declaration

    Objective-C

    @property (nonatomic, readonly) CLLocationCoordinate2D coordinate;

    Swift

    var coordinate: CLLocationCoordinate2D { get }
  • Accuracy radius (in meters).

    Declaration

    Objective-C

    @property (nonatomic, readonly) float accuracy;

    Swift

    var accuracy: Float { get }
  • The direction in which the device is traveling in geographical coordinate system. With SITAngle you can set both degrees or radians.

    Declaration

    Objective-C

    @property (nonatomic, readonly, nullable) SITAngle *bearing;

    Swift

    var bearing: SITAngle? { get }
  • Constructor

    Declaration

    Objective-C

    - (nonnull instancetype)
        initWithBuildingIdentifier:(nonnull NSString *)buildingIdentifier
                   floorIdentifier:(nonnull NSString *)floorIdentifier
                          latitude:(float)latitude
                         longitude:(float)longitude;

    Swift

    init(buildingIdentifier: String, floorIdentifier: String, latitude: Float, longitude: Float)

    Parameters

    buildingIdentifier

    building identifier

    floorIdentifier

    floor identifier

    latitude

    latitude

    longitude

    longitude