Skip to content
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 the type of trade to Jewson's (and others) as part of #4140 #4190

Merged
merged 1 commit into from Sep 23, 2020

Conversation

peternewman
Copy link
Collaborator

Add the inevitable matchname too and some matchtags

Add the inevitable matchname too and some matchtags
@peternewman peternewman changed the title Add the type of trade to Jewson's (and others) as part of #1440 Add the type of trade to Jewson's (and others) as part of #4140 Sep 23, 2020
@bhousel
Copy link
Member

bhousel commented Sep 23, 2020

Looks ok to me, thanks 👍

The matchTags for shop/doityourself is a good suggestion, but it will get removed as redundant when I run the build script.

This is because of "match groups" - see:
https://github.com/osmlab/name-suggestion-index/blob/main/config/match_groups.json
Tags in a match group will automatically match any other tags in the same match group.

@bhousel bhousel merged commit f9b4dcd into osmlab:main Sep 23, 2020
@peternewman
Copy link
Collaborator Author

The matchTags for shop/doityourself is a good suggestion, but it will get removed as redundant when I run the build script.

This is because of "match groups" - see:
https://github.com/osmlab/name-suggestion-index/blob/main/config/match_groups.json
Tags in a match group will automatically match any other tags in the same match group.

Ah I did ponder them, but didn't go looking for them. Can the match groups handle shop=trade being in multiple match groups? Wholesale should probably have it for the catering supplies aspect for example.
https://wiki.openstreetmap.org/wiki/Tag:shop=trade

@bhousel
Copy link
Member

bhousel commented Sep 23, 2020

Ah I did ponder them, but didn't go looking for them. Can the match groups handle shop=trade being in multiple match groups? Wholesale should probably have it for the catering supplies aspect for example.

Yes the matcher code does allow a tagpair to be in to multiple match groups.

For example, shop=wholesale is in a few match groups. This means that if a wholesaler like Costco is mistagged as shop=supermarket or shop=department_store or shop=food it will still be matched, and the iD validator will suggest it to be tagged as shop=wholesale to match the NSI.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants