POI Search API - How to exact match

Hello,

I am using the POI Search API in my application. How can I disable any fuzzy match ?
I need the search to bring only POIs that exactly matches my words in the search query string.

Appreciate your advice.

Tarek

Hi Tarek,
Sorry for not getting back to you sooner! And thanks for the question.
To get the functionality you need, you can use the Fuzzy Search endpoint (Fuzzy Search | Search API) and make sure to use the following parameters:

  • idxSet=POI. This limits the results to only POIs, mimicking the poiSearch endpoint
  • maxFuzzyLevel=1. This disables fuzzy matching of the query to POIs.

Hope this helps.
Best,
Wouter

1 Like