MPBuilding class

A MapsIndoors geographical entity. A MPBuilding is contained within a MPVenue and contains a number of MPFloors.

Inheritance

Properties

address String
Get the building's address
no setter
administrativeId String
Get the building's administrative id
no setter
aliases List<String>
Get a list of aliases for the building
no setter
bounds MPBounds?
Get the building's bounds
no setteroverride
buildingId String
Get the building's id value
no setter
externalId String
Get the building's external id
no setter
floorCount int
Get the number of MPFloors in the building
no setter
floors List<MPFloor>
Get a list of the floors in the building
no setter
geometry MPPolygon
Get the building's geometry
no setter
hashCode int
The hash code for this object.
no setteroverride
id MPBuildingId
Get the building's id
no setteroverride
initialFloorIndex int
Get the default floor index
no setter
name String
Get the building's name
no setter
position MPPoint
Get the position of the building, this will correspond to the building's anchor point
no setteroverride
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
venueId String
Get the id of the venue this building is in
no setter

Methods

contains(MPPoint point) Future<bool?>
Check whether the building's geometry contains the point
getField(String? key) MPDataField?
Fetch a custom field saved on the building
getFloorByIndex(int floorIndex) MPFloor?
Fetch a floor by providing its floorIndex
hasFloorIndex(int floorIndex) bool
Check whether the building contains a floor with the floorIndex
isPoint() bool
Inherited from MPEntity, a building's geometry is never a MPPoint
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() Map<String, dynamic>
Converts the MPBuilding to a JSON representation that can be parsed by the MapsIndoors Platform SDK
override
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
override

Static Methods

fromJson(dynamic json) MPBuilding?
Attempts to build a MPBuilding from a JSON object, this method will decode the object if needed