Options
All
  • Public
  • Public/Protected
  • All
Menu

A MappedinNode represents a position, anchored to a specific MappedinMap.

A Node can have more properties but usually the default is sufficient. The Mappedin 'things' object is where you would specify what properties you want to download for Nodes. Only specify what you will actually use, to minimize transfer time. Work with your Mappedin developer relations contact to set up any custom properties you need.

Hierarchy

  • MappedinNavigatable
    • MappedinNode

Index

Constructors

constructor

  • Parameters

    Returns MappedinNode

Properties

Private #private

#private: any

Private #private

#private: any

Optional externalId

externalId: string

id

id: string

Node ID.

property

id {string}

map

map: string

ID of Map that the Node is located on.

property

map {string}

Optional operationHours

operationHours: TOpeningHours[]

Operation Hours of this node. A Location may have different operation hours per node, for example 2 washrooms

x

x: number

X coordinate of Node's position.

property

x {number}

y

y: number

Y coordinate of Node's position.

property

y {number}

Accessors

locations

  • Locations attached to this Node.

    property

    locations

    Returns MappedinLocation[]

paths

polygon

Methods

directionsTo

directionsToCallback

distanceTo

  • Calculate distance between 2 nodes, polygons or locations

    Parameters

    • destination: MappedinLocation | MappedinPolygon | MappedinNode
    • options: TDirectionToOptions
    • Optional cb: (error: any, distance: number) => void
        • (error: any, distance: number): void
        • Parameters

          • error: any
          • distance: number

          Returns void

    Returns number

toJSON

  • toJSON(): any
  • Returns any

Static fetch

Static hydrate