interface SearchItem {
    _id?: string | number;
    extent?: LngLatBoundsArray;
    geom?: GeoJsonObject;
    provider?: BaseProvider<BaseProviderOptions>;
    query: string;
    result?: (() => Promise<ResultItem>);
    text: string;
    [prop: string]: any;
}

Indexable

  • [prop: string]: any

    A dynamic property bucket for the SearchItem.

Properties

_id?: string | number

An optional unique identifier for the search result.

An optional bounding box of the search result in [west, south, east, north] format.

geom?: GeoJsonObject

Optional GeoJSON geometry associated with this search result.

The provider that sourced this search result.

query: string

The original query string that resulted in this search result.

result?: (() => Promise<ResultItem>)

An optional function that can be called to retrieve detailed result for this search item.

text: string

Display text of the search result.