MapsIndoors iOS SDK V3
Loading...
Searching...
No Matches
Instance Methods | Properties | List of all members
MPBuildingDataset Class Reference

#include <MPBuildingDataset.h>

Inheritance diagram for MPBuildingDataset:

Instance Methods

(nullable MPBuilding *) - getBuilding:
 
(void) - setBuildingDelegate:
 
(double) - intersectionAreaBetweenBounds:andBounds:
 

Properties

NSString * type
 
NSArray * features
 

Detailed Description

Collection of buildings with some retrieval and calculation functionality.

Method Documentation

◆ getBuilding:

- (nullable MPBuilding *) getBuilding: (nonnull NSString *) shortName

Retrieve a building by its unique shortname.

Parameters
shortNameThe shortname of the building

◆ intersectionAreaBetweenBounds:andBounds:

- (double) intersectionAreaBetweenBounds: (nonnull GMSCoordinateBounds *) b1
andBounds: (nonnull GMSCoordinateBounds *) b2 

Get the intersection area on two GMSCoordinateBounds.

Parameters
b1Some coordinate bounds (Typically the current map viewport bounds)
b2Some other coordinate bounds (Typically building bounds)

◆ setBuildingDelegate:

- (void) setBuildingDelegate: (nullable NSObject< MPBuildingDelegate > *) delegate

Assign a delegate object to all buildings in the collection, this object will hold the onBuildingReady:shortName event method.

Parameters
delegateThe delegate object

Property Documentation

◆ features

- (NSArray*) features
readwritenonatomicstrong

Array of buildings contained in the collection.

◆ type

- (NSString*) type
readwritenonatomicstrong

The type of data (equals "FeatureCollection").