Class Connection

A class representing connection data within the map.

Connections are used to represent pathways between different map nodes.

Hierarchy

  • default
    • Connection

Implements

Properties

id: string

The identity of the map data.

images: ImageData[]

Gets the array of images associated with this data type.

An array of Image objects, or an empty array if no images exist.

links: Hyperlink[]

Gets the links associated with this data type.

The links associated with this data type

Accessors

  • get accessible(): boolean
  • Whether the connection is accessible. For example elevators are accessible while stairs are not.

    Returns boolean

    Whether the connection is accessible.

  • get description(): string
  • Returns string

  • get externalId(): string
  • Gets the external ID of the connection.

    Returns string

    The external ID of the connection.

  • get floors(): Floor[]
  • Gets the floors (Floor) associated with the connection.

    Returns Floor[]

    An array of floors for the connection.

  • get geoJSON(): { geometry: {}; properties: null; type: string }
  • Returns { geometry: {}; properties: null; type: string }

  • get geoJSONBoundingBox(): {}
  • Gets the bounding box of the geoJSON geometry.

    Returns {}

    The bounding box of the geoJSON geometry

  • get name(): string
  • Gets the name of the connection.

    Returns string

    The name of the connection.

  • get nodes(): Node[]
  • Gets the nodes (Node) associated with the connection.

    Returns Node[]

  • get type(): string
  • /**

    • Gets the type of the connection.

    Returns string

    The type of the connection.

Methods

  • Serializes the connection data to JSON.

    Returns {
        coordinates: {
            floor: undefined | string;
            latitude: number;
            longitude: number;
            verticalOffset: number;
        }[];
        externalId: string;
        floors: string[];
        id: string;
        name: string;
        type: string;
    }

    An object representing the connection.

  • Checks if the provided instance is of type Connection.

    Parameters

    • instance: object

      The instance to check.

    Returns instance is Connection

    True if the instance is a Connection, false otherwise.