-
-
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
Add drive-through information to place page and iOS editor #7835
Conversation
android/app/src/main/java/app/organicmaps/widget/placepage/PlacePageView.java
Show resolved
Hide resolved
iphone/Maps/UI/PlacePage/Components/PlacePageInfoViewController.swift
Outdated
Show resolved
Hide resolved
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.
There's no Hebrew term for this. The Wikipedia article uses a transliteration: דרייב ת'רו, which is better than nothing I guess, but makes me want to puke... Wish I could just leave this blank.
That goes double for no drive-through. Can't we let users assume there's no drive-through unless specified?
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.
de suggestions
Why not use our custom car icon on Android? |
I second that. |
We have to start to think about redesigning the Place Page. It's very useful to have all this info, but when a POI has a lot of details, it gets too cluttered. |
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.
PT and PT-BR okay.
Related issue: |
Showing "No drive-through" looks unnecessary and not useful, no? |
Yes, and it is worse in locations when this a rare feature, because waste screen that could be useful for other info. |
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 Greek suggestions, since we generally use "drive-through", so I just transliterated it.
Consensus seems to be that "No drive-through" is unnecessary. I will remove it |
@billpcs Where? Did you submit your suggestion? |
4fdf0d5
to
575eb00
Compare
@biodranik I'm sure we could find a place for POI editing related dates like in #6811, as we did here ;) |
drive_through=yes/no
I don't understand what you are saying here |
Where exactly in the iOS code? I can't find it |
Do we store drive_through=no too? Check the order in the viewDidLoad of PlacePageInfoViewController |
Yes, we store it too. Even if we are not showing it in the place page, it's needed for the editor to be able to show yes/no. |
Most of these yes/no cases can be stored in one or two bits of information (considering yes/no/unknown). So your examples above can fit into 7*3 = 21 bits of information (3 bytes). Compare it with the existing implementation where the data takes from 8*3=24 bytes (for |
I understand. Do any of the other metadata properties use this kind of conversion to bits for optimized storage? Metadata is used all over the app and I'm not sure how to implement this change. If this is implemented somewhere else it would be helpful as an example |
That's the Place Page. I am talking about the editor interface. |
I've added a tri-state segmented selector in the editor to be able to distinguish empty value from "no". Idea taken from #5724 (comment). |
The order of fields in the editor seems to be determined by the Metadata::EType order. I will leave it as is. organicmaps/indexer/editable_map_object.cpp Lines 180 to 194 in 3c9c54e
|
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.
I like it. Prefer to keep 2 commits:
- all actual changes
- [strings] Regenerated.
I actually like to keep some changes separated into different commits (for example iOS vs Android changes and placepage vs editor). I will try to squash some commits but trying to keep logical changes separated if you don’t mind |
ok |
[strings] Add "drive_through" 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>
[ios][editor] Add MWMEditorSegmentedTableViewCell [core] Add YesNoUnknown enum Signed-off-by: David Martinez <47610359+dvdmrtnz@users.noreply.github.com>
Signed-off-by: David Martinez <47610359+dvdmrtnz@users.noreply.github.com>
Squashed commits |
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.
All fine.
Add drive-through information to place page