0

I am fetching data from the here autocomplete rest endpoint. It works fine, but for example searching for berlin returns me 3 results, which are (at least in my usecase) defacto the same ... I assume berlin is found as state, city and area or something, but since this will be the same area I consider it to be duplicates ...

example results for berlin

I tried playing around with the resultType-attribute, but using area gives the same behavior. If I use city I have to enter all letters of berlin to get the suggestion ...

tommueller
  • 2,358
  • 2
  • 32
  • 44

2 Answers2

0

you can try resultType=city&country=DEU&query=Ber with country filter you need not to enter all the letters of berlin to get the suggestion and all with no duplicate.

https://developer.here.com/documentation/geocoder-autocomplete/dev_guide/topics/resource-suggest.html

Hope this helps !

0

I have to the new version coming out in a few weeks and it seems this issue is fixed:

Current: Current behavior for HERE autocomplete

View of upcoming version:

Preview of latest behavior for HERE autocomplete