osmandapp / OsmAnd

OsmAnd
https://osmand.net
Other
4.72k stars 1.03k forks source link

OpenStreetMap fields old_name, alt_name etc. are not considered when looking for cities, while they are when serching for roads #17486

Closed Max1234-Ita closed 1 year ago

Max1234-Ita commented 1 year ago

Description

I know of some locations in Italy which have either old_name or alt_name keys mapped in OSM. e.g.:

Voghera (map: Italy-Lombardy): Piazza Francesco Meardi: https://www.openstreetmap.org/way/910629447 Tags: place=square; name=Piazza Francesco Meardi; alt_name=Piazza Rossella; old_name=Piazza Rossella

Lungavilla (map: Italy-Lombardy): https://www.openstreetmap.org/node/62515300 Tags: place=village; name=Lungavilla; old_name=Calcababbio

Pizzo (map: Italy-Calabria): https://www.openstreetmap.org/node/67276014 Tags: place=village; name=Pizzo; alt_name=Pizzo Calabro

I noticed that in OsmAnd, if I search for alt_names/old_names of a street, they appear in the search results, however the search is not successful if the old/alt_name belongs to a city or village, i.e.:

image

Steps to reproduce

  1. Have at least Italy-Lombardy and Italy-Calabria maps installed in OsmAnd
  2. Open the Search tool and enter: "Voghera piazza rossella"; Observe that the result is listed and corresponds to the wanted location (see the OSM URLs in Description)
  3. Search for "Calcababbio"; Observe that a match is present but if you show it on the map, it corresponds to a different location (correct behaviour); "Lungavilla (village)" should be present in the list (the wanted place)
  4. Search for "Pizzo Calabro"; Observe that many matches are present after expanding the search radius (I have all the Italy maps installed in my device), unfortunately "Pizzo (village)" is not among them

Actual result

Searching for old_name or alt_name of locations returns a result only if the old/alt_name belongs to a street or square; place=village, place=city etc. seems to be disregarded

Expected result

Search for old_name or alt_name should return results also for place_city, place=village etc.

Your Environment

OsmAnd Version: OsmAnd Plus v. 4.5.3 (Beta) Android/iOS version: Android 11 Device model: Samsung Galaxy A50 (SM-A505 FN)

vshcherb commented 1 year ago

As you see 2nd line displays old_name (https://nominatim.openstreetmap.org/ui/details.html?osmtype=W&osmid=113138320&class=highway) also old_name / alt_name should searchable and visible for cities telegram-cloud-photo-size-4-5834589127906016521-y

Max1234-Ita commented 1 year ago

As you see 2nd line displays old_name (nominatim.openstreetmap.org/ui/details.html?osmtype=W&osmid=113138320&class=highway) also old_name / alt_name should searchable and visible for cities telegram-cloud-photo-size-4-5834589127906016521-y

I don't read very well Cyrillic alphabet, but I guess this is a search for a street which has _oldname set (and actually works). The issue comes up when a village (or city) is searched with its old_name: it looks it isn't showing up in the search results.

DmitryAlexei commented 1 year ago

The tag old_name for cities is available to search in Cyrillic, but not available to search in Latin languages. See Grodno (https://www.openstreetmap.org/relation/130921)

vshcherb commented 1 year ago

To do: support old_name:* in search, probably it's not part of the map and only map update is needed.

ivanPyrohivskyi commented 1 year ago

Problem will fix in new maps August 2023.

Use Italy Lombardy map for test. Test cases: https://www.openstreetmap.org/node/62515300 Lungavilla / Calcababbio https://www.openstreetmap.org/node/62515810 Verrua Po / Verrua Siccomario https://www.openstreetmap.org/node/517735981 Villapia / Tiracoda

Max1234-Ita commented 1 year ago

Just tried with OsmAnd v.4.5.5 Beta, it looks it works. I tried searching just for "Siccomario", however, and in effect several villages with that word in their name/old_name are found ( Verrua Po - Verrua Siccomario is among them). Unfortunately they are at random places in a very long list:

I think matches coresponding to inhabited locations (cities, towns, villages, etc) should be listed first, before all the other match types (roads, bridges, tunnels and amenities such as bus stops, etc.)... but I guess this is a different issue :-)

Thank you so much!

DmitryAlexei commented 1 year ago

Problem will fix in new maps August 2023.

Use Italy Lombardy map for test. Test cases: https://www.openstreetmap.org/node/62515300 Lungavilla / Calcababbio https://www.openstreetmap.org/node/62515810 Verrua Po / Verrua Siccomario https://www.openstreetmap.org/node/517735981 Villapia / Tiracoda

  1. Test cases almost ok. For Verrua Po village in the second line there is no information about old_name
  1. Works fine with old_name:de (https://www.openstreetmap.org/relation/130921) and diacritic symbols (https://www.openstreetmap.org/node/3009772106)
Neuwessi11 commented 1 year ago

I am not completely sure if it is the same thing, but if I search for „Düsseldorf Hotel Nikko“ there is not shown the Hotel Nikko (what is now Clayton Hotel, but I added the old_name tonight) in the search list. It only appears a wikipedia article tagged at the building next door. But when tapping at the Clayton Hotel you can see in the details of this hotel the old name, so I would guess OsmAnd can read the old names, but OsmAnd cannot reliably search for old names. Or can be the problem that „Hotel Nikko“ is only in the Live Updates, but not in the normal maps?

Max1234-Ita commented 1 year ago

I am not completely sure if it is the same thing, but if I search for „Düsseldorf Hotel Nikko“ there is not shown the Hotel Nikko (what is now Clayton Hotel, but I added the old_name tonight) in the search list. It only appears a wikipedia article tagged at the building next door. But when tapping at the Clayton Hotel you can see in the details of this hotel the old name, so I would guess OsmAnd can read the old names, but OsmAnd cannot reliably search for old names. Or can be the problem that „Hotel Nikko“ is only in the Live Updates, but not in the normal maps?

The live updates are included included in the cartography and subsequently deleted after the monthly packages have been built, as they are just temporary modifications to the map;

Perhaps the hotel tags have been changed recently? Try checking the same item after next monthly update: if so, you should find it in the regular map too (otherwise, I guess it's a bug).

Neuwessi11 commented 1 year ago

Yes, I recently added the old_name-tag. But you said, OsmAnd should work with the live updates, and it does, because when tapping on the hotel, the old name is shown. Only the search function doesn't find the old name. But I will try again after the next monthly update. Until then, you can form your own opinion. It is this hotel: https://www.openstreetmap.org/node/3176636861

Neuwessi11 commented 12 months ago

It's the same with the December maps, so it seems to be a bug. Maybe this issue should be re-opened?

DmitryAlexei commented 12 months ago

OsmAnd~ 4.6.0#1135m, released: 2023-12-01 @Neuwessi11 cannot confirm

Neuwessi11 commented 12 months ago

Interesting. The same with my OsmAnd 4.5.10. But when I search for the Hotel Nikko, I would never search only for 'nikko'. But you are right, this is not a problem of handling the old_name tag, but a problem of the search function, which is one of the worst search functions I ever met. Searching for 'nikko hotel' gives a very good result, but searching for 'hotel nikko' (what is simply the name of the hotel) or 'hotel nikko düsseldorf' is just a catastrophe. But anyway - thank you for the information!