From e32aa719551df52fbe0aa7a1a1e7f3f9b3a051a6 Mon Sep 17 00:00:00 2001 From: Martin Raifer Date: Fri, 22 Jul 2022 17:58:45 +0200 Subject: [PATCH] add (hidden) presets for healthcare=yes and traffic_calming=yes closes #547 --- data/presets/healthcare.json | 3 ++- data/presets/healthcare/_yes.json | 18 ++++++++++++++++++ data/presets/office.json | 3 ++- data/presets/traffic_calming.json | 3 ++- data/presets/traffic_calming/_yes.json | 18 ++++++++++++++++++ 5 files changed, 42 insertions(+), 3 deletions(-) create mode 100644 data/presets/healthcare/_yes.json create mode 100644 data/presets/traffic_calming/_yes.json diff --git a/data/presets/healthcare.json b/data/presets/healthcare.json index 306ae001b..0ffa0e7f5 100644 --- a/data/presets/healthcare.json +++ b/data/presets/healthcare.json @@ -41,5 +41,6 @@ "surgery", "wellness" ], - "name": "Healthcare Facility" + "name": "Healthcare Facility", + "matchScore": 0.4 } diff --git a/data/presets/healthcare/_yes.json b/data/presets/healthcare/_yes.json new file mode 100644 index 000000000..0da1def9a --- /dev/null +++ b/data/presets/healthcare/_yes.json @@ -0,0 +1,18 @@ +{ + "icon": "maki-hospital", + "fields": [ + "name", + "healthcare", + "{healthcare}" + ], + "geometry": [ + "point", + "area" + ], + "tags": { + "healthcare": "yes" + }, + "searchable": false, + "matchScore": 0.5, + "name": "Healthcare Facility (Unspecified Type)" +} diff --git a/data/presets/office.json b/data/presets/office.json index 068342fe6..4a518d0c7 100644 --- a/data/presets/office.json +++ b/data/presets/office.json @@ -40,5 +40,6 @@ "terms": [ "administration" ], - "name": "Office" + "name": "Office", + "matchScore": 0.4 } diff --git a/data/presets/traffic_calming.json b/data/presets/traffic_calming.json index c1edbf74c..28b54712a 100644 --- a/data/presets/traffic_calming.json +++ b/data/presets/traffic_calming.json @@ -19,5 +19,6 @@ "slow", "speed" ], - "name": "Traffic Calming" + "name": "Traffic Calming", + "matchScore": 0.4 } diff --git a/data/presets/traffic_calming/_yes.json b/data/presets/traffic_calming/_yes.json new file mode 100644 index 000000000..9816be7cc --- /dev/null +++ b/data/presets/traffic_calming/_yes.json @@ -0,0 +1,18 @@ +{ + "icon": "temaki-diamond", + "fields": [ + "traffic_calming", + "{traffic_calming}" + ], + "geometry": [ + "vertex", + "line", + "area" + ], + "tags": { + "traffic_calming": "yes" + }, + "name": "Traffic Calming (Unspecified Type)", + "searchable": false, + "matchScore": 0.5 +}