PWFloor Class Reference

Inherits from NSObject
Declared in PWFloor.h

Overview

The building floor object encapsulates all data related to a floor.

  building

A reference to the floor’s building object.

@property (readonly, weak) PWBuilding *building

Declared In

PWFloor.h

  floorID

The floor’s identifier.

@property (readonly) NSInteger floorID

Declared In

PWFloor.h

  name

The name of the floor as defined in MaaS Portal.

@property (readonly) NSString *name

Declared In

PWFloor.h

  level

The floor’s level number.

@property (readonly) NSInteger level

Declared In

PWFloor.h

  pointsOfInterest

An array of PWPointOfInterest objects that belong to the floor.

@property (readonly) NSArray<PWPointOfInterest*> *pointsOfInterest

Declared In

PWFloor.h

  topLeft

The top-left coordinate (latitude and longitude) of the floor.

@property (readonly) CLLocationCoordinate2D topLeft

Declared In

PWFloor.h

  bottomRight

The bottom-right coordinate (latitude and longitude) of the floor.

@property (readonly) CLLocationCoordinate2D bottomRight

Declared In

PWFloor.h

– containsCoordinate:

Determines if a given coordinate is contained within the floor’s bounding latitude and longitude.

- (BOOL)containsCoordinate:(CLLocationCoordinate2D)coordinate

Parameters

coordinate

A CLLocationCoordinate2D object containing latitude and longitude.

Return Value

Returns a BOOL value saying if the floor contains the given coordinate.

Declared In

PWFloor.h

– pointsOfInterestOfType:

Returns an array containing the floor’s points of interest of the specified point-of-interest type.

- (NSArray<PWPointOfInterest*> *)pointsOfInterestOfType:(PWPointOfInterestType *)type

Parameters

type

A PWPointOfInterestType.

Return Value

Returns NSArray containing a list of PWPointOfInterest objects for the given type.

Declared In

PWFloor.h

– pointsOfInterestOfType:containing:

Returns an array containing the floor’s points of interest of the specified point-of-interest type and whose name or description contains the supplied text.

- (NSArray<PWPointOfInterest*> *)pointsOfInterestOfType:(PWPointOfInterestType *)type containing:(NSString *)containingText

Parameters

type

A PWPointOfInterestType.

containingText

A NSString substring of text to search for in the name and description.

Return Value

Returns NSArray containing a list of PWPointOfInterest objects for the given type and whose name or description contains the supplied text.

Declared In

PWFloor.h