-
-
Notifications
You must be signed in to change notification settings - Fork 862
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[ios][android] Add fee indicator to Place Page and search results #5883
Conversation
Great job!!! I always wanted that differentiation! Regarding the icon, I would personally use the dollar sign. I think it’s more recognizable than the bag one. |
🤔 I’m thinking that maybe it could be better to have it in text: Fee/No fee. That way we could have info about the feature being free, as opposed to no info available. Because I don’t thing there is a suitable "No fee" icon. WDYT? |
this looks good :) |
What about Android? |
I’m not 100% sure but I think it should actually work in Android with these changes, since I’ve made this modification in the c++ core |
I see nothing on Android with latest build |
Maps need to be regenerated because there is a new metadata property |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Added a suggestion for the german translation
Yes, I saw those threads. I guess that you are asking me this because I took the "metadata" approach to adding this info, instead of adding it as a "type", right? I thought it was easier to add |
fee is important for some other types too like parkings, toilets, etc. Using metadata in the search is possible, but it will be very slow. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
UI - no problem here.
I'm planning to refactor fee, access, etc #1312
Storing fee in metadata is not a good idea. At least because of fast reading for rendering. I'm sure, we will render some dynamic icons someday depending on these tags.
Okay. I guess we'll have to wait until the fee refactoring then. |
I think this solution is fine for the interim. The fee/access refactoring mentioned is a very long shot. And dynamic icons is even longer one :) No need to wait for them when we can improve UX now. Code changes in this PR are small, so no problem to re-do when we have a new system in place. |
We've been discussing it and decided that adding separate |
I have tried adding to
But it doesn't seem to be working 🤔. I have regenerated maps and everything but it doesn't show up in the raw types. Any idea why? https://www.openstreetmap.org/node/9341902098#map=19/42.81552/-1.64178 |
Types that don't have any styles defined are discarded by the generator. Please add a note about this behavior into the comment in the Also note that its better to use |
@pastk @vng @biodranik PTAL. Now using |
IMHO none of those look good enough... Also their display might be dependent on available fonts, isn't it? It might look OK if we make our own clean looking icon with a crossed dollar sign. But at the expense of hardcoding its display. And I don't think its worth it, a textual "Free" is a better option IMO. |
Some more options: \u0024\u20dd \u0024\u20e3 \u0024\u20e5 \u0024\u20ea \u0024\u20eb \u0024\u0336 \u0024\u20dd\u20e5 \u0024\u20dd\u0336 \u0024\u20dd\u20eb It's quite funny what you can do with unicode and diacritics 🤣. Here's the list of unicode diacritics: https://en.wikipedia.org/wiki/Diacritic#List_of_diacritics_in_Unicode By the way I am using this website to try out the characters: https://www.branah.com/unicode-converter Some of these look okay in iOS but then look quite bad on Android 😂 |
I'm setting it as Toilet • Free / Toilet • 💲 / Toilet |
@vng PTAL |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
cad9f72
to
871777b
Compare
Signed-off-by: David Martinez <47610359+dvdmrtnz@users.noreply.github.com>
Signed-off-by: David Martinez <47610359+dvdmrtnz@users.noreply.github.com>
Signed-off-by: David Martinez <47610359+dvdmrtnz@users.noreply.github.com>
Signed-off-by: David Martinez <47610359+dvdmrtnz@users.noreply.github.com>
Signed-off-by: David Martinez <47610359+dvdmrtnz@users.noreply.github.com>
Signed-off-by: David Martinez <47610359+dvdmrtnz@users.noreply.github.com>
Signed-off-by: David Martinez <47610359+dvdmrtnz@users.noreply.github.com>
Signed-off-by: David Martinez <47610359+dvdmrtnz@users.noreply.github.com>
Signed-off-by: David Martinez <47610359+dvdmrtnz@users.noreply.github.com>
Signed-off-by: David Martinez <47610359+dvdmrtnz@users.noreply.github.com>
Signed-off-by: David Martinez <47610359+dvdmrtnz@users.noreply.github.com>
Signed-off-by: David Martinez <47610359+dvdmrtnz@users.noreply.github.com>
This PR adds a fee indicator to the Place Page in iOS. This icon will show in any place that has a
fee=yes
property.Related to More POI info for toilets and showers #3192
Closes Display toilet fee #2707
Closes show at least unusual fee=* info: fee=yes on tourism=viewpoint in object description, show fee=no for museums #5308