From 06058c1d2219acebe98bb0ec9c213b5bb268c0ca Mon Sep 17 00:00:00 2001 From: NopMap Date: Sun, 18 Mar 2018 10:30:01 +0100 Subject: [PATCH] added presets for horseback travel improved hiking and horse route relations --- data/presets/fields/distance.json | 6 +++++ data/presets/fields/horse_dressage.json | 11 ++++++++++ data/presets/fields/horse_riding.json | 11 ++++++++++ data/presets/fields/horse_scale.json | 16 ++++++++++++++ data/presets/fields/horse_stables.json | 11 ++++++++++ data/presets/fields/trailblazing_osmc.json | 5 +++++ data/presets/fields/trailblazing_text.json | 5 +++++ data/presets/fields/trailblazing_wiki.json | 5 +++++ data/presets/fields/watering_place.json | 5 +++++ data/presets/presets/amenity/fountain.json | 4 ++++ data/presets/presets/highway/path.json | 1 + data/presets/presets/highway/track.json | 3 ++- .../presets/tourism/trail_riding_station.json | 22 +++++++++++++++++++ data/presets/presets/type/route/hiking.json | 7 +++++- data/presets/presets/type/route/horse.json | 5 +++++ 15 files changed, 115 insertions(+), 2 deletions(-) create mode 100644 data/presets/fields/distance.json create mode 100644 data/presets/fields/horse_dressage.json create mode 100644 data/presets/fields/horse_riding.json create mode 100644 data/presets/fields/horse_scale.json create mode 100644 data/presets/fields/horse_stables.json create mode 100644 data/presets/fields/trailblazing_osmc.json create mode 100644 data/presets/fields/trailblazing_text.json create mode 100644 data/presets/fields/trailblazing_wiki.json create mode 100644 data/presets/fields/watering_place.json create mode 100644 data/presets/presets/tourism/trail_riding_station.json diff --git a/data/presets/fields/distance.json b/data/presets/fields/distance.json new file mode 100644 index 000000000..0f8077bfa --- /dev/null +++ b/data/presets/fields/distance.json @@ -0,0 +1,6 @@ +{ + "key": "distance", + "type": "text", + "label": "Total distance", + "placeholder": "0" +} diff --git a/data/presets/fields/horse_dressage.json b/data/presets/fields/horse_dressage.json new file mode 100644 index 000000000..c1df84053 --- /dev/null +++ b/data/presets/fields/horse_dressage.json @@ -0,0 +1,11 @@ +{ + "key": "sport", + "type": "check", + "label": "Dressage riding", + "strings": { + "options": { + "undefined": "No", + "equestrian": "Offered" + } + } +} diff --git a/data/presets/fields/horse_riding.json b/data/presets/fields/horse_riding.json new file mode 100644 index 000000000..375283f79 --- /dev/null +++ b/data/presets/fields/horse_riding.json @@ -0,0 +1,11 @@ +{ + "key": "leisure", + "type": "check", + "label": "Horseback riding", + "strings": { + "options": { + "undefined": "No", + "horse_riding": "Offered" + } + } +} diff --git a/data/presets/fields/horse_scale.json b/data/presets/fields/horse_scale.json new file mode 100644 index 000000000..1c2dc6e11 --- /dev/null +++ b/data/presets/fields/horse_scale.json @@ -0,0 +1,16 @@ +{ + "key": "horse_scale", + "type": "combo", + "label": "Horseback Riding Difficulty", + "placeholder": "Difficult, Dangerous...", + "strings": { + "options": { + "common": "Easy: No problems or difficulties. (default)", + "demanding": "Use with caution: Uneven way, occasional difficult passages.", + "difficult": "Difficult: Way narrow and exposed. May contain obstacles to step over and narrow passages.", + "critical": "Borderline: Passable only for experienced riders and horses. Major obstacles. Bridges should be examined carefully.", + "dangerous": "Dangerous: Passable only for very experienced riders and horses and only in good weather. Dismount.", + "impossible": "Impassable: Way or bridge not passable for horses. Too narrow, insuffient support, obstacles like ladders. Danger of life." + } + } +} diff --git a/data/presets/fields/horse_stables.json b/data/presets/fields/horse_stables.json new file mode 100644 index 000000000..1600a3cf6 --- /dev/null +++ b/data/presets/fields/horse_stables.json @@ -0,0 +1,11 @@ +{ + "key": "amenity", + "type": "check", + "label": "Riding stable", + "strings": { + "options": { + "stables": "Riding stable", + "undefined": "No" + } + } +} diff --git a/data/presets/fields/trailblazing_osmc.json b/data/presets/fields/trailblazing_osmc.json new file mode 100644 index 000000000..4ce2b4557 --- /dev/null +++ b/data/presets/fields/trailblazing_osmc.json @@ -0,0 +1,5 @@ +{ + "key": "osmc:symbol", + "type": "text", + "label": "Machine readable trailblazing" +} diff --git a/data/presets/fields/trailblazing_text.json b/data/presets/fields/trailblazing_text.json new file mode 100644 index 000000000..289a1dae1 --- /dev/null +++ b/data/presets/fields/trailblazing_text.json @@ -0,0 +1,5 @@ +{ + "key": "symbol", + "type": "textarea", + "label": "Trailblazing description" +} diff --git a/data/presets/fields/trailblazing_wiki.json b/data/presets/fields/trailblazing_wiki.json new file mode 100644 index 000000000..4e2b93e7d --- /dev/null +++ b/data/presets/fields/trailblazing_wiki.json @@ -0,0 +1,5 @@ +{ + "key": "wiki:symbol", + "type": "text", + "label": "OSM Wiki name of trailblazing graphic" +} diff --git a/data/presets/fields/watering_place.json b/data/presets/fields/watering_place.json new file mode 100644 index 000000000..0210294d7 --- /dev/null +++ b/data/presets/fields/watering_place.json @@ -0,0 +1,5 @@ +{ + "key": "watering_place", + "type": "defaultCheck", + "label": "Accessible for horses" +} diff --git a/data/presets/presets/amenity/fountain.json b/data/presets/presets/amenity/fountain.json index 05bc7d092..a41ee82f3 100644 --- a/data/presets/presets/amenity/fountain.json +++ b/data/presets/presets/amenity/fountain.json @@ -1,5 +1,9 @@ { "icon": "poi-fountain", + "fields": [ + "name", + "watering_place" + ], "geometry": [ "point", "area" diff --git a/data/presets/presets/highway/path.json b/data/presets/presets/highway/path.json index dec8a8fe6..d8af52105 100644 --- a/data/presets/presets/highway/path.json +++ b/data/presets/presets/highway/path.json @@ -12,6 +12,7 @@ "mtb/scale", "mtb/scale/uphill", "mtb/scale/imba", + "horse_scale", "ref" ], "geometry": [ diff --git a/data/presets/presets/highway/track.json b/data/presets/presets/highway/track.json index 9e23b3341..1ea0dc579 100644 --- a/data/presets/presets/highway/track.json +++ b/data/presets/presets/highway/track.json @@ -11,7 +11,8 @@ "smoothness", "mtb/scale", "mtb/scale/uphill", - "mtb/scale/imba" + "mtb/scale/imba", + "horse_scale" ], "geometry": [ "line" diff --git a/data/presets/presets/tourism/trail_riding_station.json b/data/presets/presets/tourism/trail_riding_station.json new file mode 100644 index 000000000..660e732b2 --- /dev/null +++ b/data/presets/presets/tourism/trail_riding_station.json @@ -0,0 +1,22 @@ +{ + "icon": "horse_riding", + "fields": [ + "name", + "horse_stables", + "horse_riding", + "horse_dressage", + "address", + "phone", + "website", + "description" + ], + "geometry": [ + "point", + "area" + ], + "tags": { + "tourism": "trail_riding_station" + }, + "name": "Trail riding station", + "matchScore": 2.0 +} diff --git a/data/presets/presets/type/route/hiking.json b/data/presets/presets/type/route/hiking.json index 059f652d3..3917b8eba 100644 --- a/data/presets/presets/type/route/hiking.json +++ b/data/presets/presets/type/route/hiking.json @@ -4,7 +4,12 @@ "name", "ref_route", "operator", - "network_foot" + "network_foot", + "description", + "distance", + "trailblazing_text", + "trailblazing_osmc", + "trailblazing_wiki" ], "geometry": [ "relation" diff --git a/data/presets/presets/type/route/horse.json b/data/presets/presets/type/route/horse.json index 53c6ddc98..551be6747 100644 --- a/data/presets/presets/type/route/horse.json +++ b/data/presets/presets/type/route/horse.json @@ -4,6 +4,11 @@ "name", "ref_route", "operator", + "description", + "distance", + "trailblazing_text", + "trailblazing_osmc", + "trailblazing_wiki", "network_horse" ], "geometry": [