osmandapp / OsmAnd

OsmAnd
https://osmand.net
Other
4.67k stars 1.02k forks source link

Search should return results in other languages, even if "Use latin name if missing" is enabled #18101

Closed balporig closed 8 months ago

balporig commented 1 year ago

Description

If Use latin name if missing Map Language option is enabled, and you search for existing POI in a non-latin language for POI with name in non-latin language no results will be returned

Related: #15579

How to reproduce

POI Name: "Агенция за устойчиво енергийно развитие" Location:42°42′2″N, 23°19′27″E - 42.7005858, 23.3241546

Make sure you're using the latest OSM data

Enabled Use latin name if missing under Configure Map > Map rendering > Map language Map Language: English

Enter in search: "агенция за устойчиво"

Actual result

The POI will not be found

Expected result

The POI should be found. Search only accounts for the transliterated display name.

If you disable Use latin name if missing option, the POI shows in search results

Search should take into account:

Environment OsmAnd Version:4.5.8 Android/iOS version: Android 10 Device model: Samsung Galaxy S10

balporig commented 1 year ago

Map display language should not affect search results. Just found that if you search for a street name in for e.g. in Bulgarian that has both name:en and name:bg tags and your display language is "English" the result is not found but if you change your display language to "Bulgarian" it shows up. The same is valid vice versa.

In my opinion, all name tags should be indexed and it should not matter the language you search in/the display language if the node has multiple language tags.

DmitryAlexei commented 1 year ago

OsmAnd~ 4.6.0#755m, released: 2023-09-13 POI Name: "Агенция за устойчиво енергийно развитие" https://www.openstreetmap.org/node/211381 (this poi was recently changed - 9 days ago, so I used actual OsmAnd map data), also tested other POI

Local names English names (Use latin name if missing)

Steps to reproduce:

Actual result:

vshcherb commented 10 months ago

To do Even with English names and Use latin name if missing enabled, search should be able to find object with native name

DmitryAlexei commented 8 months ago

OsmAnd~ 4.7.0#1813m, released: 2024-03-12 This issue is no longer reproducible.

Important to note, that in Context menu of tested POI https://www.openstreetmap.org/node/211381 not all tags were displayed