An entity that contains information about a specific building.

Export

Hierarchy

Constructors

  • Private

    Creates an instance of MPBuilding.

    Parameters

    • id: string

      The building's ID.

    • administrativeId: string

      The building's readable ID.

    • externalId: string

      An ID used to map the building to a customer's ID.

    • venueId: string

      The ID of the venue this building lies within.

    • anchor: MPPoint

      The anchor point for the building.

    • geometry: MPPolygon

      The geometry of the building.

    • _floors: Map<number, MPFloor>

      A map of the floors inside the building.

    • defaultFloor: number

      The default floor index for the building.

    • address: string

      The building's address.

    • Optional buildingInfo: default

      A collection of information about the building.

    Returns MPBuilding

Properties

_floors: Map<number, MPFloor>

A map of the floors inside the building.

address: string

The building's address.

administrativeId: string

The building's readable ID.

anchor: MPPoint

The anchor point for the building.

buildingInfo?: default

A collection of information about the building.

defaultFloor: number

The default floor index for the building.

externalId: string

An ID used to map the building to a customer's ID.

geometry: MPPolygon

The geometry of the building.

id: string

The building's ID.

type: string

The type of the entity (eg. MPLocation).

venueId: string

The ID of the venue this building lies within.

Accessors

  • get aliases(): string[]
  • Get a list of aliases for the building.

    Returns string[]

  • get bounds(): MPBounds
  • Get the building's bounds.

    Returns MPBounds

  • get buildingId(): string
  • Get the building's id.

    Returns string

  • get floorCount(): number
  • Get the number of MPFloors in the building.

    Returns number

  • get floors(): MPFloor[]
  • Get a list of the floors in the building.

    Returns MPFloor[]

  • get initialFloorIndex(): number
  • Get the default floor index.

    Returns number

  • get isPoint(): boolean
  • Overload from MPEntity, will return false.

    Returns boolean

  • get name(): string
  • Get the building's name.

    Returns string

  • get position(): MPPoint
  • Get the position of the building, this will correspond to the building's anchor point.

    Returns MPPoint

Methods

  • Check whether the building's geometry contains the point.

    Parameters

    Returns Promise<boolean>

    Async

  • Fetch a custom field from the building.

    Parameters

    • Optional key: string

    Returns MPDataField

  • Get a floor by its floor index.

    Parameters

    • floorIndex: number

    Returns MPFloor

  • Check whether the building contains a floor with the floorIndex.

    Parameters

    • floorIndex: number

    Returns boolean

  • Parses the object to a JSON object that is compatible with the MapsIndoors SDK.

    Returns MPBuildingParams

  • Stringifies the entity.

    Returns string

  • Creator for MPBounds, used to decode JSON from the MapsIndoors SDK.

    Parameters

    Returns MPBuilding

    Static

Generated using TypeDoc