IAFloor Class Reference

Inherits from NSObject
Conforms to NSCoding
Declared in IAFloor.h

Overview

IAFloor specifies the floor of the building on which the user is located. It is a replacement for CoreLocation’s CLFloor as the interface for that is not open.

+ floorWithLevel:

Initializes and returns a floor object with the specified level information.

+ (nonnull IAFloor *)floorWithLevel:(NSInteger)level

Parameters

level

initializes level value

Declared In

IAFloor.h

  level

Level values represent logical levels above or below ground level and are not intended to correspond to any numbering scheme in use by the building itself. The ground floor of a building should usually be represented by the value 0. Some buildings can have multiple floors with ground access. Value 0 should usually represent the lowest floor with ground access. Floors above the grouond floor are represented by positive integers, so a value 1 represents the floor above ground level, a value of 2 represents two floors above ground level, and so on. Floors below the ground floor are represented by corresponding negative integers, with a value of -1 representing the floor immediately below ground level and so on.

@property (nonatomic, readonly) NSInteger level

Discussion

It is erroneous to use the user’s level in a building as an estimate of altitude.

Declared In

IAFloor.h

  certainty

Certainty that IALocation floor has the correct value.

@property (nonatomic, readonly) IACertainty certainty

Declared In

IAFloor.h