Add smoking information to maps#7580
Conversation
First step towards displaying this information (organicmaps#7577). I added it as a type to make it searchable, following the treatment of cuisine and wheelchair information. Signed-off-by: Antonin Delpeuch <antonin@delpeuch.eu>
|
|
Thanks for the review!
If we are to restrict to three values, then to me "separated" and "isolated" should rather be conflated with "yes", as they all indicate that indoor smoking is allowed. |
Signed-off-by: Antonin Delpeuch <antonin@delpeuch.eu>
0060657 to
fb27acb
Compare
Signed-off-by: Antonin Delpeuch <antonin@delpeuch.eu>
Signed-off-by: Antonin Delpeuch <antonin@delpeuch.eu>
Ok, of course, we can keep all values, but better to decide when we will show some status in PP. Will it be icons or text? |
generator/osm2meta.cpp
Outdated
| return v; | ||
| // Process additional top tags. | ||
| if (v == "separated" || v == "isolated" || v == "dedicated") | ||
| return "yes"; |
There was a problem hiding this comment.
I mean keep outside, yes, no, separated, isolated, dedicated values as-is.
But keep only 3 options when showing the status in the Place Page (not in this PR).
Signed-off-by: Antonin Delpeuch <antonin@delpeuch.eu>
There’s these emojis that could be used: 🚬 for smoking=yes and 🚭 for smoking=no. However if we want to show more values it will have to be in text. |
|
I agree that an icon-based UI (like for wheelchair accessibility) is probably only doable to show a boolean. I made a mock-up of a text-based UI in the issue (#7577). I wonder to what extent we need to decide on one or another within this PR? Does it have any influence about how we store the metadata in the map? If we are to use a boolean, then my intuition would be for it to answer the question of whether one can smoke indoors, as I would say that's the most relevant information, both for smokers and non-smokers. That would mean that If we go for this boolean scheme, then it would perhaps make sense to hide the icons on places that are outdoors-only. For instance in Germany we often have some "Biergarten" mapped separately from the bar they are associated with, and they are generally mapped with |
|
For wheelchair we also use icons for boolean yes/no only, but when its "partial/limited" then a longer text is displayed - I find this logic fine and it could be applied for the smoking case as well. |
|
Let me know if there is anything that's needed on my side to get this merged. As I understand it, I need to wait for this to get merged before starting work on displaying this information in the Android app. |
|
To all interested, please write your opinion here. Do we need this tag in the data? I have doubts because the world almost has become non-smoke. As you can see, no + outside are > 80%, so is it really necessary? And to draw it in PP? |
Its really hard to say without actually looking at the data in more detail... Options:
Both seems like quite an effort.. |
I'm not a smoker so I may be biased. I find the enrichment of POI info with tags necessary and OSM data in some regions is starting to be rich enough for many features. The problem is that we're approaching each feature individually. Without looking at longer horizon on how the place page would look like when we add other features such as: Example:
So yeah, we should start thinking of scaling this UI to start implementing these tags. Attached are some screenshots of examples from GMaps and Mapycz.
I think it's very positive that these meta data is added and really appreciate the volunteering on solving it. This one is a bit complex due to the kind of tag it handles and how OM can resolve adding such info without unintentionally highlighting too much a feature that could potentially send a subliminal message for an unhealthy habit. Let's hear more from different perspectives. 😄 P.S. Screenshots of feature lists: |
|
It would be great to avoid promoting smoking in any way. We're working on Organic Maps, right? It would be great to collect important real-world use-cases first, before introducing this feature, so more users can get benefits from it. |
|
To react to @vng's concisely:
I wish you were right! But if you look at this list of smoking bans from Wikipedia (in particular the map there) it's far from universal still.
I'd be cautious about drawing conclusions from statistics on tag values, because it is probably far from a representative sample.
Let me give you my use case. In Saxony (Germany) it is quite common for bars and other hospitality spaces to allow smoking. As a non-smoker I am really tired of ending up in bars where I am in contact with indoor smoking (be it So I believe offering this information would give OM a clear added value over Google Maps for people like me (and I think I am far from the only one here). |
That is a great example and a use case, thanks! I think we'd want to avoid situations like this: or this: If just a fraction of places has a smoking status tagged then it doesn't matter that much IMO. Have you had a chance to research |
In Saxony the rates of indoor smoking are pretty high, but I guess you probably want a broader overview to know if it's relevant to your user base at large. So I have started a more comprehensive review country by country: Out of this survey, I would say that smoking information is worth showing in those countries:
But overall, I am not sure it's worth hard-coding a list of countries where this information should be shown or not. This is bound to be incomplete, prone to interpretation and disagreement and go out of date as the legislation evolve. I think it would be simpler to just show the information when it's provided in OSM - it's delegating the work of determining if it's locally relevant to OSM contributors themselves. After all, we have this: If you think it's indeed worth including this information, I would be happy to update this PR and work on getting it merged. |
|
I would prefer to avoid indirectly advertizing smoking in Organic Maps. |
We could take the opportunity and flip the coin if we present it as a positive feature when a place is smoke free 🫁🍃 Think about hard smoking countries where legislation isn't helping and it'd be a positive thing to see in the PP. I think the major stopping stone here is the previous discussion that we need to set a longer horizon for formatting the place page. We should make some prototypes of how we would fit everything together with all the tags available. |
|
@wetneb Thanks for your research!
For sure we can release it as an alpha/experimental build and ask for users' feedback. And regardless of your choice whether to continue or not - thanks a lot for your effort and raising this up! |
|
Given the mixed feedback I think this is unlikely to work out, so I will not work on this further. |



This is a first step towards displaying the smoking status of venues (#7577).
I added it as a type to make it searchable, following the treatment of
cuisineandwheelchairinformation, but happy to keep it as a metadata attribute only if you prefer.I couldn't figure out if I should regenerate
data/classificator.txtand others myself in this PR, or if it should rather be left as a follow-up. Because I could not figure out how to regenerate those, I have made the changes manually there, by imitation. Happy to discard those changes if needed.