MPBuildingDataset
@interface MPBuildingDataset
Collection of buildings with some retrieval and calculation functionality.
-
The type of data (equals
FeatureCollection
).Declaration
Objective-C
@property (assign, readwrite, atomic) NSString *type;
Swift
var type: String! { get set }
-
Array of buildings contained in the collection.
Declaration
Objective-C
@property (assign, readwrite, atomic) NSArray *features;
Swift
var features: [Any]! { get set }
-
Retrieve a building by its unique shortname. - parameter: The shortname of the building
Declaration
Objective-C
- (MPBuilding *)getBuilding:(NSString *)shortName;
Swift
func getBuilding(_ shortName: String!) -> MPBuilding!
Parameters
The
shortname of the building
-
Assign a delegate object to all buildings in the collection, this object will hold the onBuildingReady:shortName event method. - parameter: The delegate object
Declaration
Objective-C
- (void)setBuildingDelegate:(NSObject<MPBuildingDelegate> *)delegate;
Swift
func setBuildingDelegate(_ delegate: MPBuildingDelegate!)
Parameters
The
delegate object
-
Get the intersection area on two GMSCoordinateBounds. - parameter: b1 Some coordinate bounds (Typically the current map viewport bounds) - parameter: b2 Some other coordinate bounds (Typically building bounds)
Declaration
Objective-C
- (double)intersectionAreaBetweenBounds:(id)b1 andBounds:(id)b2;
Swift
func intersectionAreaBetweenBounds(_ b1: Any!, andBounds b2: Any!) -> Double
Parameters
b1
Some coordinate bounds (Typically the current map viewport bounds)
b2
Some other coordinate bounds (Typically building bounds)