From 5d1d761ea4b6ed94aae29d76a25a393bbeaa9040 Mon Sep 17 00:00:00 2001 From: Martin Raifer Date: Wed, 22 Jun 2022 12:53:05 +0200 Subject: [PATCH] [regional] add support for moped ramps in the NL (closes #484) * adds NL-specific preset for "moped links" (highway=cycleway + bicycle=no + moped=designated) * replace deprecation rule for `highway=cycleway` + `bicycle=no` with special "replacement" preset (which excludes the NL) --- data/deprecated.json | 4 --- .../presets/highway/cycleway/_bicycle_no.json | 18 ++++++++++ .../highway/cycleway/moped_link-NL.json | 35 +++++++++++++++++++ data/presets/highway/path/_bicycle_no.json | 11 ++++++ 4 files changed, 64 insertions(+), 4 deletions(-) create mode 100644 data/presets/highway/cycleway/_bicycle_no.json create mode 100644 data/presets/highway/cycleway/moped_link-NL.json create mode 100644 data/presets/highway/path/_bicycle_no.json diff --git a/data/deprecated.json b/data/deprecated.json index 173bacf11..7f2401dcc 100644 --- a/data/deprecated.json +++ b/data/deprecated.json @@ -730,10 +730,6 @@ "old": {"highway": "bridleway", "horse": "no"}, "replace": {"highway": "path", "horse": "no"} }, - { - "old": {"highway": "cycleway", "bicycle": "no"}, - "replace": {"highway": "path", "bicycle": "no"} - }, { "old": {"highway": "cycleway", "cycleway": "track"}, "replace": {"highway": "cycleway"} diff --git a/data/presets/highway/cycleway/_bicycle_no.json b/data/presets/highway/cycleway/_bicycle_no.json new file mode 100644 index 000000000..efc9a5b5f --- /dev/null +++ b/data/presets/highway/cycleway/_bicycle_no.json @@ -0,0 +1,18 @@ +{ + "locationSet": { + "exclude": [ + "NL" + ] + }, + "geometry": [ + "line" + ], + "tags": { + "highway": "cycleway", + "bicycle": "no" + }, + "searchable": false, + "matchScore": 1, + "name": "Cycleway (NO)", + "replacement": "highway/path/bicycle_no" +} diff --git a/data/presets/highway/cycleway/moped_link-NL.json b/data/presets/highway/cycleway/moped_link-NL.json new file mode 100644 index 000000000..cabf836e3 --- /dev/null +++ b/data/presets/highway/cycleway/moped_link-NL.json @@ -0,0 +1,35 @@ +{ + "locationSet": { + "include": [ + "nl" + ] + }, + "icon": "fas-moped", + "fields": [ + "name", + "oneway", + "surface", + "smoothness", + "width", + "structure", + "access", + "incline" + ], + "geometry": [ + "line" + ], + "tags": { + "highway": "cycleway", + "bicycle": "no", + "moped": "designated" + }, + "addTags": { + "highway": "cycleway", + "bicycle": "no", + "moped": "designated", + "foot": "no", + "mofa": "no" + }, + "matchScore": 0.9, + "name": "Moped Link" +} diff --git a/data/presets/highway/path/_bicycle_no.json b/data/presets/highway/path/_bicycle_no.json new file mode 100644 index 000000000..828a58655 --- /dev/null +++ b/data/presets/highway/path/_bicycle_no.json @@ -0,0 +1,11 @@ +{ + "geometry": [ + "line" + ], + "tags": { + "highway": "path", + "bicycle": "no" + }, + "matchScore": 0, + "name": "Path" +}