-
-
Notifications
You must be signed in to change notification settings - Fork 358
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
For names of shops and amenities (name quest) use NSI data to offer autocomplete #2290
Comments
I was just thinking this sounded like a good idea 😄 😆
I'd strongly encourage this if they're set on the nodes, it will reduce the list a lot so M might be sufficient to display what you want. |
Not entirely sure if it is possible. The suggestion bar above the software keyboard is controlled by the input method editor (the keyboard software), not by the app. It is called "candidates view". So the feature you are looking for might be autofill. Autofill suggestions are shown in a dropdown menu. Since Android 11, there seems to be the possibility to show these autofill suggestions in that candidates view of the keyboard, it the keyboard software supports it. |
I'm putting this on feedback because it's not clear if this can be done at all and what the effort would be and I do not plan to do any more research in this direction. |
How are you doing the charging station/ATM operators? This is just another clone of that isn't it, with a different data source? |
That's |
Why not though? If the user selects deliberately a brand? After all, I guess if the user selects one from the list, "brand" should be tagged, not "name". |
I didn't really follow why (do you mean keyboard keypress), or OSM map key? But given you appear to have added a commit to fix it, presumably it's possible? |
The NSI stuff is a bit more complex than tagging brand or not, but can add lots of useful detail including things like brand and operator as appropriate, as well as unifying some other tagging. I suspect you probably want to add their name as a name if they have a name. To take a concrete example, in the UK there is a pub brand called Weatherspoons, each pub still has it's own name e.g. "The Montagu Pyke", so you want to prompt for a name for those, not just skip it if the brand has been set by someone, and conversely not set the name and brand to the same thing in that case. NSI handles most of these edge cases already. Ideally SC would be really clever and if I type Weatherspoons it would populate the brand field, say thanks and then ask me what the name is either then or later (I guess it could display the brand like it does floors/house names/numbers etc as a hint it's looking for something else this time). |
Well, there are four options:
I am strongly leaning towards 3 or 4 here. 2 is basically already disqualified because of your comment, right? @matkoniecz seeemed to (initially) favour 1. |
Another piece of information: Only the presets are suggested which
However, neither the logo nor any other icon is shown when a preset is selected. Showing icons in the dropdown there would increase the app size by at least 2 MB but more likely 8MB. Even 30MB if that icon would be shown in large (like it is done in iD. |
Given the other tags seem to add value, I'd personally be against this, plus it avoids the risks of people just doing the same thing via iD when they aren't in front of the shop and it's possibly changed brand or whatever.
The only thing to be wary of with four, is NSI is always evolving, there could be another shop called Carrefour which either hasn't been added to the index yet, or they haven't been geo-located yet, there seems to be a lot of overlap in the US. Seamlessly doing it perhaps risks miss-tagging it, whereas offering "Carrefour (brand=Carrefour, shop=supermarket)" and then a separate option of "Just tag Carrefour" would allow people to avoid that. Dragging in the logos would make that much safer, but then you either need to cache them all for people like me using it offline, I guess others may not like them all coming from social media either. You could have a brand quest, which just tags the brand for places when you key it in, but that seems like unnecessary duplication, and unless you do something as complicated as that, you'll hit some edge cases.
Generally sounds sensible, although risks hiding "The Foo Bank" if I just type in "Foo Bank", although I guess I'm being naughty and lazy if it's not what's on the front of the building. If you handle the match names too, they'll generally cover these sort of issues, plus Weatherspoons/J.D. Weatherspoons/Spoons etc.
Great, that's half the benefit of NSI, do you handle some of the more esoteric presets like 001, EU, GB-ENG etc? I guess the geojson ones will just get ditched?
Makes sense.
Perfect, there are also matchtags, to deal with shop=supermarket/shop=hypermarket etc in the case of something like Carrefour.
Fair enough. Plus presumably you're just starting with some types of presets, plus that will keep growing. You could always offer a link to Wikipedia/Wikidata/NSI if people wanted to double-check. |
50x50px thumbnails of all the brand logos in the NSI are 8.34 MB, and growing, of course. I think this is a little much. I'll not add this for now. |
I'll implement option 4 |
Main risk here is that
But note that I am extremely defensive about this kind of mistakes, so overall it will be probably fine (but sooner or later there will be some actual false positive). Sorry for a late reply (too late to be useful probably), right now I am trying to get through far too many notifications. |
See for example https://www.openstreetmap.org/way/165659335#map=19/39.48195/-88.37310 https://en.wikipedia.org/wiki/Burger_King_(Mattoon,_Illinois) Burger King has the right to use this name throughout USA, with the exception of a 20-mile radius surrounding a restaurant, also called Burger King, in Mattoon. |
I think you'll generally find when some incorrect info has got into NSI, they open an issue and leave it open until it's merged into iD and then go and fix the outstanding errors.
Likewise in this case, they've done that a number of times.
Trademarks should generally cover most of this, unless the NSI data has an error, or it's geographical masks/exclusions are wrong.
I'd possibly agree with you, and showing brand logos would help to ensure people definitely have the right one (although with some acknowledged downsides), but personally I feel allowing people to tag it on-site within OSM is better than them doing so at home via iD and not realising the shop has closed or moved to a bigger premises nearby. I'd still suggest NSI is a better source of data than leaving it to people's typing as I think #2194 shows.
I've added an issue to get that covered in NSI: osmlab/name-suggestion-index#4817 |
Main negative here is that NSI mistakes will result in invalid edits by StreetComplete - and user has no chance at all to review or notice the mistake. So StreetComplete is more affected than other NSI users. |
Use case
#1693 (comment)
Based on my mapping in Vespucci it is quite useful, to reduce typos and to reduce input time.
Proposed Solution
Use autocomplete from NSI. Use just names, do not add silently other tags.
Optionally, use tagged shop/amenity value as a part of a filter do not offer unrelated autocomplete
Main drawback is that you see names of Tesco/McDonalds/etc in one more place. (and that this feature will not implement or maintain itself)
The text was updated successfully, but these errors were encountered: