Class Location

A class representing location data within the map.

A Location is something like a store, or a washroom on a map.

Hierarchy

  • default
    • Location

Implements

  • Omit<EnterpriseLocation, "polygons" | "nodes" | "links">

Properties

amenity?: string

The location's amenity type. Only set if the location is an amenity

description?: string
externalId: string = ''
extra?: Record<string, unknown>
gallery?: {
    caption?: null | string;
    embeddedUrl?: null | string;
    image: string;
}[]

The location's image gallery

id: string

identity of the map object

links: Hyperlink[] = []

Gets the links associated with this data type.

The links associated with this data type

logo?: string

The location's logo

uri

name: string = ''
operationHours?: OperationHours[]
phone?: {
    extension?: string;
    number: string;
}
picture?: string

The picture of the location

uri

shortName?: string
showFloatingLabelWhenImagePresent?: boolean

Whether to show the flat label when an image is present

showLogo?: boolean

Whether to show the logo of the location

siblingGroups?: SiblingGroup[]

Locations that are related to this location in some manner (described by the label)

social?: {
    facebook?: string;
    instagram?: string;
    twitter?: string;
    website?: string;
}

The location's social media links

sortOrder: number = -1
states?: LocationState[]

The location's state. No more than one state should be active at a time, and all but at most one should have dates set

tags?: string[]
type: string = ''

Accessors

  • get nodes(): Node[]
  • Returns Node[]

Methods

  • Serializes the location data to JSON.

    Returns {
        id: string;
        name: string;
    }

    An object representing the location.

    • id: string
    • name: string
  • Checks if the provided instance is of type Location.

    Parameters

    • instance: object

      The instance to check.

    Returns instance is Location

    True if the instance is a Location, false otherwise.