From ad1b6998a44fe98b5339902d358def7151fc3a7c Mon Sep 17 00:00:00 2001 From: bkil Date: Tue, 8 Nov 2016 11:59:10 +0100 Subject: [PATCH] data/presets/fields: add surveillance and camera related properties 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` --- data/presets/fields/camera/direction.json | 6 ++++++ data/presets/fields/camera/mount.json | 6 ++++++ data/presets/fields/camera/type.json | 6 ++++++ data/presets/fields/contact/webcam.json | 7 +++++++ data/presets/fields/surveillance.json | 6 ++++++ data/presets/fields/surveillance/type.json | 6 ++++++ data/presets/fields/surveillance/zone.json | 6 ++++++ 7 files changed, 43 insertions(+) create mode 100644 data/presets/fields/camera/direction.json create mode 100644 data/presets/fields/camera/mount.json create mode 100644 data/presets/fields/camera/type.json create mode 100644 data/presets/fields/contact/webcam.json create mode 100644 data/presets/fields/surveillance.json create mode 100644 data/presets/fields/surveillance/type.json create mode 100644 data/presets/fields/surveillance/zone.json diff --git a/data/presets/fields/camera/direction.json b/data/presets/fields/camera/direction.json new file mode 100644 index 000000000..61a24ad01 --- /dev/null +++ b/data/presets/fields/camera/direction.json @@ -0,0 +1,6 @@ +{ + "key": "camera:direction", + "type": "number", + "label": "Camera direction", + "placeholder": "90 (degrees clockwise)" +} diff --git a/data/presets/fields/camera/mount.json b/data/presets/fields/camera/mount.json new file mode 100644 index 000000000..2b0bf9571 --- /dev/null +++ b/data/presets/fields/camera/mount.json @@ -0,0 +1,6 @@ +{ + "key": "camera:mount", + "type": "combo", + "label": "Camera mount", + "options": [ "pole", "wall", "ceiling", "roof", "gantry" ] +} diff --git a/data/presets/fields/camera/type.json b/data/presets/fields/camera/type.json new file mode 100644 index 000000000..fc6e16338 --- /dev/null +++ b/data/presets/fields/camera/type.json @@ -0,0 +1,6 @@ +{ + "key": "camera:type", + "type": "combo", + "label": "Camera type", + "options": ["fixed", "panning", "dome"] +} diff --git a/data/presets/fields/contact/webcam.json b/data/presets/fields/contact/webcam.json new file mode 100644 index 000000000..0a1371f9a --- /dev/null +++ b/data/presets/fields/contact/webcam.json @@ -0,0 +1,7 @@ +{ + "key": "contact:webcam", + "type": "url", + "icon": "website", + "label": "Webcam feed URL", + "placeholder": "http://example.com/" +} diff --git a/data/presets/fields/surveillance.json b/data/presets/fields/surveillance.json new file mode 100644 index 000000000..2afb60217 --- /dev/null +++ b/data/presets/fields/surveillance.json @@ -0,0 +1,6 @@ +{ + "key": "surveillance", + "type": "combo", + "label": "Surveillance kind", + "options": ["outdoor", "public", "indoor"] +} diff --git a/data/presets/fields/surveillance/type.json b/data/presets/fields/surveillance/type.json new file mode 100644 index 000000000..4ba3cf39f --- /dev/null +++ b/data/presets/fields/surveillance/type.json @@ -0,0 +1,6 @@ +{ + "key": "surveillance:type", + "type": "combo", + "label": "What is watching", + "options": ["camera", "guard", "alpr"] +} diff --git a/data/presets/fields/surveillance/zone.json b/data/presets/fields/surveillance/zone.json new file mode 100644 index 000000000..99aaca4db --- /dev/null +++ b/data/presets/fields/surveillance/zone.json @@ -0,0 +1,6 @@ +{ + "key": "surveillance:zone", + "type": "combo", + "label": "Zone", + "options": ["traffic", "building", "town", "parking", "shop", "bank"] +}