Parameter interface for MPFilter.

Export

MPFilterParams

interface MPFilterParams {
    categories?: string[];
    depth?: number;
    floorIndex?: number;
    geometry?: MPBounds;
    ignoreLocationActiveStatus?: boolean;
    ignoreLocationSearchableStatus?: boolean;
    locations?: string[];
    mapExtend?: MPBounds;
    parents?: string[];
    skip?: number;
    take?: number;
    types?: string[];
}

Properties

categories?: string[]

A list of categories (keys) from, for example, MPLocation#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.

Generated using TypeDoc