-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
data/presets: add surveillance and camera related properties #3599
data/presets: add surveillance and camera related properties #3599
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Mostly ok, but let's:
- skip the fields which are not established, or don't contain meaningful values..
- remove the placeholders from fields where the placeholder can be computed..
- don't default fields when we actually want the user to enter the value.. (we almost never use
"default"
, and when you see it, it's probably a tagging oddity)
"type": "url", | ||
"icon": "website", | ||
"placeholder": "http://example.com/", | ||
"universal": true, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This should not be a universal field
"key": "camera:type", | ||
"type": "combo", | ||
"label": "Camera type", | ||
"default": "fixed", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We should not default this.. better to let users enter it..
@@ -0,0 +1,6 @@ | |||
{ | |||
"key": "camera:features", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Let's not add camera:features
.. it's not an established tag.
"key": "camera:features", | ||
"type": "combo", | ||
"label": "Camera features", | ||
"placeholder": "Webcam, Microphone, Nightvision, Heatvision, Zoom, Motion, Wireless" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should not suggest Uppercase placeholders for a lowercase tag
"key": "surveillance", | ||
"type": "combo", | ||
"label": "Surveillance kind", | ||
"default": "outdoor", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should not default this
"type": "combo", | ||
"label": "Surveillance kind", | ||
"default": "outdoor", | ||
"placeholder": "Public, Outdoor, Indoor", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No need to add placeholder here, this will be computed automatically from available values.. Don't add Uppercase placeholders for a lowercase tag..
@@ -0,0 +1,8 @@ | |||
{ | |||
"key": "surveillance:type", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Let's skip surveillance:type
.. 98% of the values are just "camera", and the other values are noisy.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Although I default to camera
as well when I map and I don't view the other variants meaningful either, however it has become kind of de facto mandatory.
For example, this visualization also requires many fields to work (described on right panel):
https://kamba4.crux.uberspace.de/
Although, I'll probably add camera:direction
to the form as well because I find it easy to add in practice.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ok, I see. Yes I have heard of Surveillance Under Surveillance. I didn't realize they were consuming this data and required surveillance:type
to be filled in. In that case, what you have for this file is fine 👍
"key": "surveillance:zone", | ||
"type": "combo", | ||
"label": "Zone", | ||
"placeholder": "Town, Parking, Traffic, Shop, Building" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No placeholder here.. let it be computed from available values.
Thank you for the insightful comments. I will probably have some time tomorrow to do the fix-ups. |
https://wiki.openstreetmap.org/wiki/Tag:man_made%3Dsurveillance https://wiki.openstreetmap.org/wiki/Proposed_features/Extended_tags_for_Key:Surveillance These are mandatory tags: * `surveillance` * `surveillance:type` I do not feel that the following are important, they can be selected from the drop down manually anyway: * `operator` * `name` These tags are well established: * `camera:type` has 15k users * `camera:mount` has 13k users * `surveillance:zone` has 17k users (mostly traffic is noted) * `camera:direction` has 6k users These tags are in the proposed status: * `contact:webcam` usage is only starting * `height` People used various tags instead of `contact:webcam` in the past because of it being a recent tag, and/or a lack of knowledge or being mislead by the dropdown. Thus it is difficult to quote an exact number, but by using complex regexp queries, I could find thousands of usages for webcam links when properly combining man_made/surveillance/camera and various (sometimes invalid) keywords in the key or value part of a tag: * `website` * `image` * `uri`, `url`, `link`, `http`, `contact` * `stream` * `webcam`
1aa2230
to
c4140bf
Compare
Requested changes done. Added |
Thanks @bkil I made a few small cleanups and merged.. BTW, you don't need to include the filename in the commit message - GitHub makes it really easy for me to see what files were changed. It's better to use those words to include a summary that I can scan quickly when I'm looking over the commits with |
https://wiki.openstreetmap.org/wiki/Tag:man_made%3Dsurveillance
https://wiki.openstreetmap.org/wiki/Proposed_features/Extended_tags_for_Key:Surveillance
These are mandatory tags:
surveillance
surveillance:type
I do not feel that the following are important, they can be selected from
the drop down manually anyway:
operator
name
These tags are well established:
camera:type
has 15k userscamera:mount
has 13k userssurveillance:zone
has 17k users (mostly traffic is noted)camera:direction
has 6k usersThese tags are in the proposed status:
contact:webcam
usage is only startingheight
People used various tags instead of
contact:webcam
in the pastbecause of it being a recent tag, and/or a lack of knowledge or being
mislead by the dropdown.
Thus it is difficult to quote an exact number, but by using complex
regexp queries, I could find thousands of usages for webcam links
when properly combining man_made/surveillance/camera and various
(sometimes invalid) keywords in the key or value part of a tag:
website
image
uri
,url
,link
,http
,contact
stream
webcam