From 4184e16cc8951f7bc2903492d240c2a696893a1d Mon Sep 17 00:00:00 2001 From: archpdx Date: Mon, 20 Nov 2023 08:47:30 -0800 Subject: [PATCH] Update loading dock fields (#1043) --- data/deprecated.json | 4 ++++ data/fields/dock/height.json | 6 ++++++ data/fields/dock/width.json | 6 ++++++ data/fields/door/height.json | 6 ++++++ data/fields/door/width.json | 6 ++++++ data/presets/amenity/loading_dock.json | 11 ++++++++--- 6 files changed, 36 insertions(+), 3 deletions(-) create mode 100644 data/fields/dock/height.json create mode 100644 data/fields/dock/width.json create mode 100644 data/fields/door/height.json create mode 100644 data/fields/door/width.json diff --git a/data/deprecated.json b/data/deprecated.json index 8a13ee4f..e3ac7aea 100644 --- a/data/deprecated.json +++ b/data/deprecated.json @@ -550,6 +550,10 @@ "old": {"disabled_spaces":"*"}, "replace": {"capacity:disabled": "$1"} }, + { + "old": {"door": "loadingdock"}, + "replace": {"amenity": "loading_dock"} + }, { "old": {"drinkable": "*"}, "replace": {"drinking_water": "$1"} diff --git a/data/fields/dock/height.json b/data/fields/dock/height.json new file mode 100644 index 00000000..375d6f52 --- /dev/null +++ b/data/fields/dock/height.json @@ -0,0 +1,6 @@ +{ + "key": "dock:height", + "minValue": 0, + "type": "number", + "label": "Dock Height (Meters)" +} diff --git a/data/fields/dock/width.json b/data/fields/dock/width.json new file mode 100644 index 00000000..45dc6ade --- /dev/null +++ b/data/fields/dock/width.json @@ -0,0 +1,6 @@ +{ + "key": "dock:width", + "minValue": 0, + "type": "number", + "label": "Dock Width (Meters)" +} diff --git a/data/fields/door/height.json b/data/fields/door/height.json new file mode 100644 index 00000000..8515d87b --- /dev/null +++ b/data/fields/door/height.json @@ -0,0 +1,6 @@ +{ + "key": "door:height", + "minValue": 0, + "type": "number", + "label": "Door Height (Meters)" +} diff --git a/data/fields/door/width.json b/data/fields/door/width.json new file mode 100644 index 00000000..478dcea3 --- /dev/null +++ b/data/fields/door/width.json @@ -0,0 +1,6 @@ +{ + "key": "door:width", + "minValue": 0, + "type": "number", + "label": "Door Width (Meters)" +} diff --git a/data/presets/amenity/loading_dock.json b/data/presets/amenity/loading_dock.json index e6ef9014..35d7565d 100644 --- a/data/presets/amenity/loading_dock.json +++ b/data/presets/amenity/loading_dock.json @@ -4,15 +4,20 @@ "ref", "operator", "access_simple", - "door", - "width", - "height" + "door" ], "moreFields": [ "address", + "dock/height", + "dock/width", + "door/height", + "door/width", "colour", "level", "lit", + "maxheight", + "maxlength", + "maxwidth", "wheelchair" ], "geometry": [