Optionalfilters?: SearchFiltersWhat may come back: the country and the POI-attribute restrictions together.
OptionalmaxFuzzyLevel?: numberMaximum fuzziness level to be used.
Controls the upper limit of tolerance for character differences. Higher values allow more variations but may include irrelevant results.
OptionalminFuzzyLevel?: numberMinimum fuzziness level to be used.
Controls how tolerant the search is to character differences. Lower values require closer matches to the query text.
Fuzziness levels correspond to Levenshtein edit distance:
Higher minimum levels make the search more lenient but may return less relevant results.
Pass these to discoverPlaces, which selects the request variant from the params it is given:
a route property dispatches to along-route search, a geometries property to geometry search,
and neither to fuzzy search.
Key Features:
Use Cases:
// Basic fuzzy search
const params: FuzzySearchParams = {
query: 'pizz', // Will find "pizza" restaurants
geoBias: { position: [4.9041, 52.3676] }
};
// Fuzzy search with custom fuzziness
const customParams: FuzzySearchParams = {
query: 'restaurnt', // Misspelled "restaurant"
minFuzzyLevel: 1,
maxFuzzyLevel: 3,
limit: 10
};
Parameters for fuzzy search queries.
Fuzzy search finds places and addresses using partial or misspelled text queries. It's designed to handle typos, abbreviations, and incomplete input gracefully.