organicmaps icon indicating copy to clipboard operation
organicmaps copied to clipboard

Show more POI types in poi info (PP) subtitle

Open pastk opened this issue 1 year ago • 10 comments

#8481 has added most common types, but there are more.

power image

piste:type image

shop (generic) https://www.openstreetmap.org/way/355649602 image

pastk avatar Jun 28 '24 22:06 pastk

shop (generic) https://www.openstreetmap.org/way/355649602 image

I see. This is because we are filtering out level 1 types. @vng Any alternative idea on how to show level=1 shop but ignore level=1 amenity ?

https://github.com/organicmaps/organicmaps/blob/ab5eaced779a44938944f9ce0faa67eb19cbfab0/indexer/map_object.cpp#L109-L113

dvdmrtnz avatar Jun 29 '24 08:06 dvdmrtnz

The original generic amenity was amenity=clock: https://www.openstreetmap.org/node/489786064

I have a better idea than filtering the generic amenity. Let's leave it as is, and collect/fix user reports by adding missing amenities instead into OM. WDYT?

biodranik avatar Jun 29 '24 09:06 biodranik

I see. This is because we are filtering out level 1 types. @vng Any alternative idea on how to show level=1 shop but ignore level=1 amenity ?

Make one of them an exception.

Or better make shop=yes transform into shop-yes (not generic shop).

I have a better idea than filtering the generic amenity. Let's leave it as is, and collect/fix user reports by adding missing amenities instead into OM.

This is good, but it'll take a lot of time to add all missing tags (some of them might be niche / have very little use).

Probably it makes more sense not to match e.g. amenity=clock into amenity at all (but might break some legit cases, needs research).

pastk avatar Jun 29 '24 11:06 pastk

This is good, but it'll take a lot of time to add all the missing tags (some of them might be niche / have very little use).

The goal is not to add all tags (we may reach it someday eventually), but to add important/needed/useful tags (to users). Providing more detailed info on the map is one of the strongest features of OM/OSM.

Displaying "Clock" instead of "Amenity" is definitely more useful. And hacks are not needed.

biodranik avatar Jun 29 '24 12:06 biodranik

Displaying "Clock" instead of "Amenity" is definitely more useful. And hacks are not needed.

Sure! But do I understand right that the way you suggest to do it

I have a better idea than filtering the generic amenity. Let's leave it as is

is to continue to display generic "Amenity" if a specific full type is not supported yet?

pastk avatar Jun 29 '24 17:06 pastk

Yes. It will motivate us to add a new type based on discoveries and user reports )

biodranik avatar Jun 29 '24 18:06 biodranik

Yes. It will motivate us to add a new type based on discoveries and user reports )

But that also means that for types that we decided not to add (e.g. too little use) or are too slow to add (usual stuff :)) users will see a quite confusing "Amenity". In English it doesn't look too bad compared to translations to some other languages :)

pastk avatar Jun 29 '24 19:06 pastk

Essentially, in the perfect world, any type can be added, right?

biodranik avatar Jun 29 '24 19:06 biodranik

If you guys think we should still remove "Amenity", we could do something like this to detect generic amenity without matching amenity subtypes, which is clearer than previous code. And It will not remove generic shops for example.

auto const & isAmenity = ftypes::IsAmenityChecker::Instance();
if (isAmenity(type) && ftype::GetLevel(type) == 1))
  continue;

dvdmrtnz avatar Jun 30 '24 09:06 dvdmrtnz

LGTM

pastk avatar Jun 30 '24 09:06 pastk