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?: numberOptionalposition?: HasLngLatGeographic position to bias search results toward.
When provided, results closer to this position are ranked higher. Does not filter results, only creates a soft bias.
Accepts any HasLngLat-compatible value:
[longitude, latitude] coordinate pairPoint geometryFeature<Point> — pass a Place directlyKey Features:
Use Cases:
// Basic fuzzy search
const params: FuzzySearchParams = {
key: 'your-api-key',
query: 'pizz', // Will find "pizza" restaurants
position: [4.9041, 52.3676]
};
// Fuzzy search with custom fuzziness
const customParams: FuzzySearchParams = {
key: 'your-api-key',
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.