From bddb7cb8c855f165ae2fbb753bad82f28fa4e86c Mon Sep 17 00:00:00 2001 From: Bryan Housel Date: Mon, 7 Dec 2015 23:37:51 -0800 Subject: [PATCH] Add maxstay field for amenity=parking preset (closes #2851) --- data/presets.yaml | 5 +++++ data/presets/fields.json | 6 ++++++ data/presets/fields/maxstay.json | 6 ++++++ data/presets/presets.json | 1 + data/presets/presets/amenity/parking.json | 1 + dist/locales/en.json | 4 ++++ 6 files changed, 23 insertions(+) create mode 100644 data/presets/fields/maxstay.json diff --git a/data/presets.yaml b/data/presets.yaml index a4a2deeb3..5a18ddf0c 100644 --- a/data/presets.yaml +++ b/data/presets.yaml @@ -563,6 +563,11 @@ en: label: Speed Limit # maxspeed field placeholder placeholder: '40, 50, 60...' + maxstay: + # 'maxstay=*' + label: Max Stay + # maxstay field placeholder + placeholder: '30 minutes, 1 hour, 2 hours...' mtb/scale: # 'mtb:scale=*' label: Mountain Biking Difficulty diff --git a/data/presets/fields.json b/data/presets/fields.json index 279e14ccb..b2af1ebcc 100644 --- a/data/presets/fields.json +++ b/data/presets/fields.json @@ -759,6 +759,12 @@ "label": "Speed Limit", "placeholder": "40, 50, 60..." }, + "maxstay": { + "key": "maxstay", + "type": "combo", + "placeholder": "30 minutes, 1 hour, 2 hours...", + "label": "Max Stay" + }, "mtb/scale": { "key": "mtb:scale", "type": "combo", diff --git a/data/presets/fields/maxstay.json b/data/presets/fields/maxstay.json new file mode 100644 index 000000000..30b172408 --- /dev/null +++ b/data/presets/fields/maxstay.json @@ -0,0 +1,6 @@ +{ + "key": "maxstay", + "type": "combo", + "placeholder": "30 minutes, 1 hour, 2 hours...", + "label": "Max Stay" +} diff --git a/data/presets/presets.json b/data/presets/presets.json index e882bad99..bf8796d38 100644 --- a/data/presets/presets.json +++ b/data/presets/presets.json @@ -1186,6 +1186,7 @@ "supervised", "park_ride", "surface", + "maxstay", "address" ], "geometry": [ diff --git a/data/presets/presets/amenity/parking.json b/data/presets/presets/amenity/parking.json index 7ffb3c279..b83a01f12 100644 --- a/data/presets/presets/amenity/parking.json +++ b/data/presets/presets/amenity/parking.json @@ -9,6 +9,7 @@ "supervised", "park_ride", "surface", + "maxstay", "address" ], "geometry": [ diff --git a/dist/locales/en.json b/dist/locales/en.json index c3d2d3ec0..64f683167 100644 --- a/dist/locales/en.json +++ b/dist/locales/en.json @@ -1071,6 +1071,10 @@ "label": "Speed Limit", "placeholder": "40, 50, 60..." }, + "maxstay": { + "label": "Max Stay", + "placeholder": "30 minutes, 1 hour, 2 hours..." + }, "mtb/scale": { "label": "Mountain Biking Difficulty", "placeholder": "0, 1, 2, 3...",