Wrong values for "suggestion.city" (country Latvia)
See original GitHub issueWhen I am querying any address in Latvia, I got incorrect values for suggestion.city
.
Example query: “Muitas iela”
The result returns:
{ "query": "Muitas iela", "suggestion": { "name": "Muitas iela", "administrative": "Vidzeme", "county": "Rīga", "city": "Vidzeme", "suburb": "Centrs", "country": "Latvija", "countryCode": "lv", "type": "address", "latlng": { "lat": 56.953, "lng": 24.1013 }, "postcode": "1010", "highlight": { "name": "<em>Muitas iela</em>", "city": "Vidzeme", "administrative": "Vidzeme", "country": "Latvija", "suburb": "Centrs", "county": "Rīga" }, "value": "Muitas iela, Vidzeme, Vidzeme, Latvija" } }
Value which is returned in field suggestion.county
(Riga in this example) shall have been returned in suggestion.city
instead. This issue affects any street address in Latvia which I try to query.
We use the latest Algolia places version (1.9.0)
Issue Analytics
- State:
- Created 5 years ago
- Comments:7 (3 by maintainers)
Top GitHub Comments
@armandsss It seems that Riga is considered as a rank 12 in OpenStreetMap/Nominatim and this is causing issues as
rank:12
is how counties are defined according to this table. The issue is that the proposed definition for admin_level in OpenStreetMap for Latvia puts both counties and cities on the same admin level, which is what is causing issues here, as we can’t tell apart cities from counties.Unfortunately, although we would like to improve on these cases, we are currently tackling larger issues and to be completely transparent with you, we won’t be able to develop a solution for it quickly.
If I go to https://community.algolia.com/places/ and type in
580 Bank St Ottawa
, the top result gives a city of “Ontario” and a county of “Ottawa”. As most of the users of our app are Canadian, and we find ourselves now having to reverse geocode the lat/lng from Algolia through google just to get the correct city name.