spatial-monorepo / ui/src / useIndoorSearch
Function: useIndoorSearch()
useIndoorSearch(
features,keys):UseIndoorSearchResult
Defined in: packages/ui/src/useIndoorSearch.ts:48
Performs ranked client-side search over GeoJSON feature properties.
Parameters
features
GeoJSONFeature[]
Array of GeoJSON features to search.
keys
string[]
Property keys to search across (e.g. ['name', 'ref']).
Returns
{ query, setQuery, results } — results ranked by match quality.
