From d668498414044b48eae1893559f1f5c5a743dfe4 Mon Sep 17 00:00:00 2001 From: Bryan Housel Date: Tue, 13 Jan 2015 21:47:52 -0500 Subject: [PATCH] Add `amenity=bicycle_repair_station` preset (closes #2497) --- data/presets.yaml | 15 ++++++++++++ data/presets/fields.json | 24 +++++++++++++++++++ .../fields/service/bicycle/chaintool.json | 12 ++++++++++ data/presets/fields/service/bicycle/pump.json | 12 ++++++++++ data/presets/presets.json | 22 +++++++++++++++++ .../amenity/bicycle_repair_station.json | 22 +++++++++++++++++ data/taginfo.json | 4 ++++ dist/locales/en.json | 20 ++++++++++++++++ 8 files changed, 131 insertions(+) create mode 100644 data/presets/fields/service/bicycle/chaintool.json create mode 100644 data/presets/fields/service/bicycle/pump.json create mode 100644 data/presets/presets/amenity/bicycle_repair_station.json diff --git a/data/presets.yaml b/data/presets.yaml index a1472ec02..bb798427a 100644 --- a/data/presets.yaml +++ b/data/presets.yaml @@ -438,6 +438,18 @@ en: label: Seasonal service: label: Type + service/bicycle/chaintool: + label: Chain Tool + options: + undefined: Assumed to be No + "yes": "Yes" + "no": "No" + service/bicycle/pump: + label: Air Pump + options: + undefined: Assumed to be No + "yes": "Yes" + "no": "No" shelter: label: Shelter shelter_type: @@ -648,6 +660,9 @@ en: amenity/bicycle_rental: name: Bicycle Rental terms: "" + amenity/bicycle_repair_station: + name: Bicycle Repair Station + terms: "" amenity/boat_rental: name: Boat Rental terms: "" diff --git a/data/presets/fields.json b/data/presets/fields.json index c58257046..8d13c4677 100644 --- a/data/presets/fields.json +++ b/data/presets/fields.json @@ -893,6 +893,30 @@ "drive-through" ] }, + "service/bicycle/chaintool": { + "key": "service:bicycle:chaintool", + "type": "check", + "label": "Chain Tool", + "strings": { + "options": { + "undefined": "Assumed to be No", + "yes": "Yes", + "no": "No" + } + } + }, + "service/bicycle/pump": { + "key": "service:bicycle:pump", + "type": "check", + "label": "Air Pump", + "strings": { + "options": { + "undefined": "Assumed to be No", + "yes": "Yes", + "no": "No" + } + } + }, "shelter": { "key": "shelter", "type": "check", diff --git a/data/presets/fields/service/bicycle/chaintool.json b/data/presets/fields/service/bicycle/chaintool.json new file mode 100644 index 000000000..8d34c8615 --- /dev/null +++ b/data/presets/fields/service/bicycle/chaintool.json @@ -0,0 +1,12 @@ +{ + "key": "service:bicycle:chaintool", + "type": "check", + "label": "Chain Tool", + "strings": { + "options": { + "undefined": "Assumed to be No", + "yes": "Yes", + "no": "No" + } + } +} diff --git a/data/presets/fields/service/bicycle/pump.json b/data/presets/fields/service/bicycle/pump.json new file mode 100644 index 000000000..bb14992ec --- /dev/null +++ b/data/presets/fields/service/bicycle/pump.json @@ -0,0 +1,12 @@ +{ + "key": "service:bicycle:pump", + "type": "check", + "label": "Air Pump", + "strings": { + "options": { + "undefined": "Assumed to be No", + "yes": "Yes", + "no": "No" + } + } +} diff --git a/data/presets/presets.json b/data/presets/presets.json index 8041601c0..91dc92ee8 100644 --- a/data/presets/presets.json +++ b/data/presets/presets.json @@ -499,6 +499,28 @@ }, "name": "Bicycle Rental" }, + "amenity/bicycle_repair_station": { + "icon": "bicycle", + "fields": [ + "operator", + "opening_hours", + "fee", + "service/bicycle/chaintool", + "service/bicycle/pump" + ], + "geometry": [ + "point", + "vertex", + "area" + ], + "terms": [ + "bike" + ], + "tags": { + "amenity": "bicycle_repair_station" + }, + "name": "Bicycle Repair Station" + }, "amenity/boat_rental": { "fields": [ "operator" diff --git a/data/presets/presets/amenity/bicycle_repair_station.json b/data/presets/presets/amenity/bicycle_repair_station.json new file mode 100644 index 000000000..a93e02c00 --- /dev/null +++ b/data/presets/presets/amenity/bicycle_repair_station.json @@ -0,0 +1,22 @@ +{ + "icon": "bicycle", + "fields": [ + "operator", + "opening_hours", + "fee", + "service/bicycle/chaintool", + "service/bicycle/pump" + ], + "geometry": [ + "point", + "vertex", + "area" + ], + "terms": [ + "bike" + ], + "tags": { + "amenity": "bicycle_repair_station" + }, + "name": "Bicycle Repair Station" +} diff --git a/data/taginfo.json b/data/taginfo.json index 161c40569..4db422fcd 100644 --- a/data/taginfo.json +++ b/data/taginfo.json @@ -124,6 +124,10 @@ "key": "amenity", "value": "bicycle_rental" }, + { + "key": "amenity", + "value": "bicycle_repair_station" + }, { "key": "amenity", "value": "boat_rental" diff --git a/dist/locales/en.json b/dist/locales/en.json index a4a60470e..e77a1b5cd 100644 --- a/dist/locales/en.json +++ b/dist/locales/en.json @@ -1104,6 +1104,22 @@ "service": { "label": "Type" }, + "service/bicycle/chaintool": { + "label": "Chain Tool", + "options": { + "undefined": "Assumed to be No", + "yes": "Yes", + "no": "No" + } + }, + "service/bicycle/pump": { + "label": "Air Pump", + "options": { + "undefined": "Assumed to be No", + "yes": "Yes", + "no": "No" + } + }, "shelter": { "label": "Shelter" }, @@ -1386,6 +1402,10 @@ "name": "Bicycle Rental", "terms": "bike" }, + "amenity/bicycle_repair_station": { + "name": "Bicycle Repair Station", + "terms": "bike" + }, "amenity/boat_rental": { "name": "Boat Rental", "terms": ""