question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Wrong values for "suggestion.city" (country Latvia)

See original GitHub issue

When 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:closed
  • Created 5 years ago
  • Comments:7 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
JonathanMontanecommented, Sep 20, 2018

@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.

0reactions
alexplumbcommented, Jul 10, 2019

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.

Read more comments on GitHub >

github_iconTop Results From Across the Web

What went wrong with Latvia? | Financial Times
Now Latvia probably beats Iceland to the title of Europe's worst-hit country. The Latvian central bank predicts that the economy will shrink ...
Read more >
Good and Bad Neighbors: Perceptions in Latvian Society
Enmity and amity between countries is primarily defined by state institutions. Perceptions of societies in this regard are more obscure.
Read more >
Forensics of the Latvia Crisis - Brookings Institution
ABSTRACT Latvia's boom, bust, and recovery provide a rare case study for macroeconomists: an economy that responded to a balance-of-payments crisis.
Read more >
Soros says EU "wrong" to push austerity on Latvia - Reuters
Billionaire investor George Soros blamed the European Union on Saturday for not doing enough to help Latvia, one of the bloc's most damaged ......
Read more >
War in Ukraine | Tackling the policy challenges - OECD
As the global ramifications of the conflict begin to bite, the OECD is bringing together its latest data, analysis and insights to help...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found