HSLdevcom / digitransit

Digitransit - open nationwide journey planning platform by HSL and Finnish Transport Agency
http://digitransit.fi/
33 stars 6 forks source link

Pelias autocomplete request needs to support an option that returns only one entry per street #109

Open mhalttu opened 7 years ago

mhalttu commented 7 years ago

This query http://api.digitransit.fi/geocoding/v1/autocomplete?text=Pisantie returns results for a total of two unique streets. The other 8 results are duplicates with random street numbers. There are many more streets in Finland with the name "Pisantie" and all of them are hidden from autocomplete, which makes the request pretty much useless.

vesameskanen commented 7 years ago

I can confirm the problem. Digitransit uses search endpoint and therefore we have focused our efforts in making the mentioned search as good as possible. Search correctly returns the all 3 Pisantie entries we have in our data as first alternatives.