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

Improve names and tags for Correios depots and post offices #7154

Merged
merged 2 commits into from Oct 29, 2022

Conversation

vgeorge
Copy link
Contributor

@vgeorge vgeorge commented Oct 6, 2022

This should address the issues discussed in #7100. Changes:

  • Use extended names to differentiate post offices from depots
  • Use brand:* instead of operator:* in post offices

cc @matheusgomesms @UKChris-osm @willemarcel


Fix #7100

@matheusgomesms
Copy link
Contributor

Thanks a lot, @vgeorge!! It looks great to me! A couple of details:

1 - I guess we would have to delete the entry from operators folder and create another one in brands folder, for the post_office tag (someone from NSI please confirm that).

2 - It seems that post boxes are auto populated from post offices. While I see why you changed the name, to be clarified when editing, in this case, shouldn't it still be displayName=Correios? This is only the display name, and then we can add name=Correios, inside tags.

3 - If we add the name=Correios tag, then we would probably have to create an exception on amenity/post_box.json file, removing the name tag, since I guess post boxes should not have a name.

I can help you with that, if you want (and agree with my observations).

@vgeorge
Copy link
Contributor Author

vgeorge commented Oct 6, 2022

@matheusgomesms I moved the post_office entry from operators to brand folder. About the post boxes, I believe their display name should be different from the post office. I couldn't find a reference to it on Correios's website, but from this news article it seems the terminology used by the company is "Caixa de Coleta dos Correios".

@matheusgomesms
Copy link
Contributor

Great! I support Caixa de Coleta dos Correios for display name on post boxes.

Not sure if you agree, but for post offices I would add the tag name=Correios as well. What do you think?

@vgeorge vgeorge marked this pull request as draft October 7, 2022 09:04
@vgeorge
Copy link
Contributor Author

vgeorge commented Oct 7, 2022

@matheusgomesms I'm inclined use the extended name "Agência dos Correios", "Centro de Distribuição dos Correios" and "Caixa de Coleta dos Correios" in the name tag, but I'm not against name=Correios. Maybe we leave this change out to discuss it further with the local community?

I'm not sure how to add the post box entry, it would be great if someone could point out which changes should I do.

@LaoshuBaby @bhousel I've changed this PR status to draft, this is work in progress.

@bhousel
Copy link
Member

bhousel commented Oct 27, 2022

Thanks @vgeorge and @matheusgomesms , this seems ok to me.

I'm not sure how to add the post box entry, it would be great if someone could point out which changes should I do.

The amenity=post_box items are generated automatically from these rules:
(basically they copy all the "brand" and "operator" post offices, but remove tags like "name" and "shop")

"note": "Auto create post boxes for all brand post offices - a few exceptions",
"templateExclude": [
"fedex",
"orlen",
"upsstore"
],
"templateSource": "brands/amenity/post_office",
"templateTags": {
"amenity": "post_box",
"name": "",
"operator": "{source.tags.brand}",
"operator:wikidata": "{source.tags.brand:wikidata}",
"shop": ""
}
},
{
"note": "Auto create post boxes for all operator post offices except Swiss Post",
"templateExclude": ["diepost"],
"templateSource": "operators/amenity/post_office",
"templateTags": {
"amenity": "post_box",
"name": "",
"shop": ""
}
},

@UKChris-osm UKChris-osm marked this pull request as ready for review October 27, 2022 16:17
@LaoshuBaby LaoshuBaby merged commit 99c97c2 into osmlab:main Oct 29, 2022
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.

Move Brazilian post office (Correios) to brands tree
4 participants