A filter that can be applied during search, this will limit the returned MPEntitys to those that fulfills the filter.

Export

Hierarchy

  • MPFilter

Constructors

  • Private

    Creates an instance of MPFilter.

    Parameters

    • Optional take: number

      How many of the applicable locations to include.

    • Optional skip: number

      How many of the applicable locations to skip.

    • Optional depth: number

      The depth property makes it possible to get the n'th descendant of a parent location.

      Thus, the depth property only applies to filters that has set one or more parents. The hierarchical tree of data is generally structured as Venue > Building > Floor > Room > POI.

      For example, this means that a Floor is the 1st descendant of a Building. So to get all locations inside a Building, set the [depth] to 3.

      The default value is 1, giving you only the immediate descendant of the specified parents.

    • Optional floorIndex: number

      The floorIndex property makes it possible to get the locations on a specific floor.

    • Optional categories: string[]

      A list of categories (keys) from, for example, categories.

    • Optional locations: string[]

      A list of location ids to search in.

    • Optional types: string[]

      A list of location types to search in.

    • Optional parents: string[]

      A list of parent ids.

    • Optional mapExtend: MPBounds

      The outer bounds of the query.

    • Optional geometry: MPBounds

      A geometry to search inside.

    • Optional ignoreLocationSearchableStatus: boolean

      Allows queries to return results that are marked as non-searchable.

    • Optional ignoreLocationActiveStatus: boolean

      Allows queries to return results that are marked as inactive using the active from/to mechanism.

    Returns MPFilter

Properties

categories?: string[]

A list of categories (keys) from, for example, categories.

depth?: number

The depth property makes it possible to get the n'th descendant of a parent location.

Thus, the depth property only applies to filters that has set one or more parents. The hierarchical tree of data is generally structured as Venue > Building > Floor > Room > POI.

For example, this means that a Floor is the 1st descendant of a Building. So to get all locations inside a Building, set the [depth] to 3.

The default value is 1, giving you only the immediate descendant of the specified parents.

floorIndex?: number

The floorIndex property makes it possible to get the locations on a specific floor.

geometry?: MPBounds

A geometry to search inside.

ignoreLocationActiveStatus?: boolean

Allows queries to return results that are marked as inactive using the active from/to mechanism.

ignoreLocationSearchableStatus?: boolean

Allows queries to return results that are marked as non-searchable.

locations?: string[]

A list of location ids to search in.

mapExtend?: MPBounds

The outer bounds of the query.

parents?: string[]

A list of parent ids.

skip?: number

How many of the applicable locations to skip.

take?: number

How many of the applicable locations to include.

types?: string[]

A list of location types to search in.

Methods

  • Creator for MPError, invoke with 0 parameters to apply an empty filter.

    Parameters

    Returns MPFilter

    Static

Generated using TypeDoc