Settings: disable NSI (Name Suggestion Index) brand suggestions#958
Open
tordans wants to merge 1 commit into
Open
Settings: disable NSI (Name Suggestion Index) brand suggestions#958tordans wants to merge 1 commit into
tordans wants to merge 1 commit into
Conversation
Introduce includeNSISuggestions user preference (default on) and wire it through preset search so NSI presets and remote brand logos are omitted when disabled. Place a Brand suggestions switch below search results in the feature picker; keep includeNSI matching for existing tagged objects. Co-authored-by: Tobias <t@tobiasjordans.de>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Problem
Go Map merges Name Suggestion Index (NSI) brand/chain presets into preset search (e.g. “McDonald’s”, “REWE”) and loads brand logos from the network via
NsiLogoDatabase. Mappers who mostly tag generic POIs get noisier search results and extra data use from logo fetches they do not need.As a mapper, I want to turn off brand/chain suggestions while searching for a preset, so search stays focused on generic types and the app does not download brand icons in the background—without breaking objects I already tagged with
brand=*or other NSI-derived tags.A different solution to this would be to improve how the search results are prioritized. But TBH I don't have an idea where to start and personally I never use the NSI options so this toggle would be a way to solve this.
Implementation notes (by Cursor)
UserPrefs.includeNSISuggestions(includeNSISuggestionskey, iCloud-synced), default on when unset (includeNSISuggestionsEnabled).includeNSIonenumeratePresetsAndNsiIn,featuresMatchingSearchText, andfeaturesInCategory(top-level search only).POIFeaturePickerViewController: when the search field is non-empty, a second table section below results shows “Brand suggestions” with aUISwitch(not in the main Settings screen).nsiLogo/NsiLogoDatabasein the picker; bundlediconUnscaledis used instead; NSI star prefix on titles is hidden.nsiLogowhen off; uses bundled icon when available.POICommonTagsViewController/POIAllTagsViewController/OsmBaseObjectstill useincludeNSI: trueforpresetFeatureMatchingon current object tags so already-mapped brand POIs keep matching and display correctly.Testing notes (@tordans)
brand=*/ NSI tags → Common Tags still shows correct type/name; tags are not stripped when toggling pref.iCloud (optional): Toggle on device A, verify sync to device B via ubiquitous pref.– Not testednsi-hide--before.min.mov
nsi-hide--after.min.mov