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

Update public_bookcase.json - Add more fields #1001

Merged
merged 5 commits into from
Dec 16, 2023

Conversation

danieldegroot2
Copy link
Contributor

@danieldegroot2 danieldegroot2 commented Sep 9, 2023

In general,

  • adds generic combo field books (also used on book shops etc.).

For public bookcase,

  • adds fields books, direction
  • adds moreFields colour, height, support. However, it seems height is already supported on any object, eventhough not all presets need this.
  • moves lit from fields to moreFields.

Ignored:

  • anything used with booth or building key.
  • a few with internet_access(yes/wlan) and/or inscription exist.
  • a single fee=yes (58 uses) this one.
  • a single width/length, useful for nodes (1 use) this one.
  • material (58 uses) is used but also included in public_bookcase:type. This seems somewhat of a tagging issue.
  • recycling:books, charity and second_hand are used by WikiProject:CircularEconomy but mostly in France.
  • there is also some use of reuse:policy, reuse:books, reuse:facility. It is used by Public bookcase map, see source code.

PS: Made a typo in the first commit saying capacity was added but it is still the same.

Adds moreFields capacity, colour, height, support and moves lit from fields to moreFields.
@github-actions
Copy link

github-actions bot commented Sep 9, 2023

🍱 Preview the tagging presets of this pull request here: https://pr-1001--ideditor-presets-preview.netlify.app/id/dist/#locale=en.

@danieldegroot2 danieldegroot2 marked this pull request as draft September 12, 2023 19:03
Add books field
Adds fields books, direction
@danieldegroot2 danieldegroot2 marked this pull request as ready for review September 12, 2023 22:32
Copy link
Member

@tyrasd tyrasd left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Usually, I use the popularity of tag combinations to determine which fields to offer by default and which to include as optional fields. See below for some instances where I noticed that the preset would not match this rule of thumb.

Also, the books field should pobably allow for a multi-selection (see also the inline comment below).

data/fields/books.json Outdated Show resolved Hide resolved
@@ -3,23 +3,28 @@
"fields": [
"name",
"public_bookcase/type",
"books",
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I would have said that for public bookcases, it is rather the exception to find only specific types of books. For this reason, I would have put this field to the moreFields section.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It is already exception they are mapped, let alone such tags being discovered by users, but it is fine to change it.

"operator",
"capacity",
"lit"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The lit tag seems to be a relatively popular combination (see taginfo: https://taginfo.openstreetmap.org/tags/amenity=public_bookcase#combinations). Why hide it?

Copy link
Contributor Author

@danieldegroot2 danieldegroot2 Dec 15, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

For clarity, it is moved to moreFields. (it is not hidden if people can easily discover it)
I think it is overall more of an exception they are lit, although relatively popular now.
Similarly, I think it is exception people will use a bookcase at night (except in areas with longer nights).
Otherwise I also don't think it is significant property of object itself, like for advertising (only on few ones on public squares).

(Here also it is fine to change it.)

"operator",
"capacity",
"lit"
"direction"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The direction tag is not used very commonly on public bookcases. What's the intention behind offering the field by default for these features?

Copy link
Contributor Author

@danieldegroot2 danieldegroot2 Dec 15, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

So it can be more easily discovered.
direction in general is not often used, because it is not directly a object/access type.
However, it is often found on/near barrier and usually only accesible from one side.
It is recommended to add direction to such objects to prevent ambiguity with its position relative to other objects.
(similar to cameras, defibrillators, etc.)

(Here also it is fine to change it.)

Copy link
Member

@tyrasd tyrasd left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the feedback. I've changed the field type to allow multiple values and tweaked the label to also fit other uses of the tag (e.g. on book shops or libraries). I've also reverted the field "ordering" to match the usage/popularity of the attributes for now.

@tyrasd tyrasd merged commit 5261060 into openstreetmap:main Dec 16, 2023
5 checks passed
tyrasd added a commit that referenced this pull request Dec 16, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants