algolia / places

:globe_with_meridians: Turn any <input> into an address autocomplete
https://community.algolia.com/places/
MIT License
5.35k stars 234 forks source link

City type results worse than no-type (for cities) ? #275

Closed pandaiolo closed 8 years ago

pandaiolo commented 8 years ago

From the website example with type: city

capture d ecran 2016-07-08 a 12 12 42

Not very friendly results :)

First entry should be like without options: Paris, France

vvo commented 8 years ago

Agreed, we need to work on that, relevancy wise. Thanks for the report!

redox commented 8 years ago

Ok, the Lutèce and Ancien - Quartier... entries should be fixed after the next planet reindexing. We now force the alternative forms to be at the end of the multi-valued attributes, avoiding such display to occur.

nddery commented 8 years ago

To add on this issue, when adding type: 'city and searching for Canadian cities (may well be happening with other countries), the administrative region is missing. However, the same search query, but without specifying the type, will yield an administrative region in the results.

screen shot 2016-07-20 at 12 56 59

screen shot 2016-07-20 at 12 56 40

vvo commented 8 years ago

@nddery Just confirmed this yes, when using countries: ['ca'] with addresses then we get the administrative information. But when searching for cities there's no more administrative information.

redox commented 8 years ago

@nddery Just confirmed this yes, when using countries: ['ca'] with addresses then we get the administrative information. But when searching for cities there's no more administrative information.

So for internal performance reason; we're using the Geonames data while searching for cities (or country) only. Otherwise, we use OSM. Here it turns out that the Geonames data is less good. I'll check if we're able to improve it.

nddery commented 8 years ago

@redox I see - should I open a new issue for this as this one is tagged OSM data issue ?

redox commented 8 years ago

We've updated the underlying data, it looks better what do you think?

nddery commented 8 years ago

Seems like the Paris issue has been fixed, however the administrative region is still missing for a lot of cities (for example, Montréal, New York City, Ottawa...).

redox commented 8 years ago

Seems like the Paris issue has been fixed, however the administrative region is still missing for a lot of cities (for example, Montréal, New York City, Ottawa...).

Good point, we've improved the OSM data but here it looks like our Geonames data processing is lacking some zipcode/administratives. I'll create a new issue for that.