A MapsIndoors geographical entity. A venue can exist anywhere, and it can contain a number of MPBuildings and MPLocations.

Export

Hierarchy

Constructors

  • Creates an instance of MPVenue.

    Parameters

    • id: string

      The venue's ID.

    • administrativeId: string

      The venue's readable ID.

    • tilesUrl: string

      The URL that is used to fetch tiles for the venue.

    • mapStyles: MPMapStyle[]

      An array of mapStyles that can be used on this venue.

    • geometry: MPPolygon

      The geometry of the venue.

    • defaultFloor: number

      The venue's defalt floor index.

    • venueInfo: MPVenueInfo

      A collection of information about the venue.

    • anchor: MPPoint

      The anchor point for the location.

    • entryPoints: MPPoint[]

      Points of entry that are used to create routes between MapsIndoors and the underlying map.

    • Optional externalId: string

      An optional ID used to map the venue to a customer's ID.

    • Optional graphId: string

      The ID of the graph used to route on this venue.

    Returns MPVenue

Properties

administrativeId: string

The venue's readable ID.

anchor: MPPoint

The anchor point for the location.

defaultFloor: number

The venue's defalt floor index.

entryPoints: MPPoint[]

Points of entry that are used to create routes between MapsIndoors and the underlying map.

externalId: string

An optional ID used to map the venue to a customer's ID.

geometry: MPPolygon

The geometry of the venue.

graphId?: string

The ID of the graph used to route on this venue.

id: string

The venue's ID.

mapStyles: MPMapStyle[]

An array of mapStyles that can be used on this venue.

tilesUrl: string

The URL that is used to fetch tiles for the venue.

type: string

The type of the entity (eg. MPLocation).

venueInfo: MPVenueInfo

A collection of information about the venue.

Accessors

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

    Returns MPBounds

  • get defaultMapStyle(): MPMapStyle
  • Get the venue's default mapstyle.

    Returns MPMapStyle

  • get isPoint(): boolean
  • Inherited from MPEntity, a venue's geometry is never a MPPoint.

    Returns boolean

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

    Returns string

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

    Returns MPPoint

Methods

  • Check whether the venue contains a point.

    Parameters

    Returns Promise<boolean>

    Async

  • Fetch a field from the venue's info member.

    Parameters

    • Optional key: string

    Returns MPDataField

  • Check whether the venue has a valid routing graph.

    Returns Promise<boolean>

    Async

  • Check whether a given mapstyle is valid for the venue.

    Parameters

    Returns boolean

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

    Returns MPVenueParams

  • Stringifies the entity.

    Returns string

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

    Parameters

    Returns MPVenue

    Static

Generated using TypeDoc