SITOutdoorLocationOptions

Objective-C

@interface SITOutdoorLocationOptions : NSObject <NSCopying>

Swift

class SITOutdoorLocationOptions : NSObject, NSCopying

Outdoor location options used only in indoor-outdoor mode

  • Building detector strategy to find the building to start the indoor positioning

    Declaration

    Objective-C

    @property (nonatomic) kSITBuildingDetector buildingDetector;

    Swift

    var buildingDetector: kSITBuildingDetector { get set }
  • Controls whether outdoor positions should be used per the location engine. Default value: YES @Discussion: this flag is incompatible with the @link kSITBuildingDetector#kSITGpsProximity building detector option. If those parameters are requested the location engine will raise an error and stop. When this option is disabled (false value) outdoor locations won’t be sent though location listener nor they will be uploaded to the realtime/historic dashboard.

    Declaration

    Objective-C

    @property (nonatomic) BOOL enableOutdoorPositions;

    Swift

    var enableOutdoorPositions: Bool { get set }
  • Minimum accuracy required, in meters, for an outdoor position to be returned through the LocationManager delegate. Default value is zero, so all locations will be returned regardless of its accuracy. This parameter only accepts positive values. If a negative value is used, it will be ignored.

    Declaration

    Objective-C

    @property (nonatomic) NSInteger minimumOutdoorLocationAccuracy;

    Swift

    var minimumOutdoorLocationAccuracy: Int { get set }
  • Controls if the building selection stage should take into account building detection geofences. These building detection geofences are configured from the dashboard and must have a custom field with the key “trainer_metadata” and value “{ "passable”:“True”, “use_gps”:“True”}“. This mode is useful only for a buildingDetector of type kSITBLE. When activating this mode you should set SITLocationRequest.useGps to YES in the SITLocationRequest in order obtain proper locations inside these building detection geofences.

    Declaration

    Objective-C

    @property (nonatomic) BOOL useGeofencesInBuildingSelector;

    Swift

    var useGeofencesInBuildingSelector: Bool { get set }