upgrade old information values to subtypes of board/map

and add an "activity" field for maps and guideposts which indicates the mapped/signposted scope of activities: hiking, biking, etc.

closes #45
This commit is contained in:
Martin Raifer 2022-01-06 11:14:25 +01:00
parent 94b44a884d
commit 98613d9a39
No known key found for this signature in database
GPG key ID: 3CD561F7B1C461BD
5 changed files with 63 additions and 1 deletions

View file

@ -734,6 +734,34 @@
"old": {"highway": "unsurfaced"},
"replace": {"highway": "road", "surface": "unpaved"}
},
{
"old": {"information": "citymap"},
"replace": {"tourism": "information", "information": "map", "map_type": "street", "map_size": "city"}
},
{
"old": {"information": "hikingmap"},
"replace": {"tourism": "information", "information": "map", "map_type": "topo", "hiking": "yes"}
},
{
"old": {"information": "bicyclemap"},
"replace": {"tourism": "information", "information": "map", "map_type": "topo", "bicyle": "yes"}
},
{
"old": {"information": "nature"},
"replace": {"tourism": "information", "information": "board", "board_type": "nature"}
},
{
"old": {"information": "history"},
"replace": {"tourism": "information", "information": "board", "board_type": "history"}
},
{
"old": {"information": "wild_life"},
"replace": {"tourism": "information", "information": "board", "board_type": "wildlife"}
},
{
"old": {"information": "wildlife"},
"replace": {"tourism": "information", "information": "board", "board_type": "wildlife"}
},
{
"old": {"internet_access": "public"},
"replace": {"internet_access": "yes", "internet_access:fee": "no"}

20
data/fields/activity.json Normal file
View file

@ -0,0 +1,20 @@
{
"keys": [
"hiking",
"bicycle",
"mtb",
"horse",
"ski"
],
"type": "manyCombo",
"label": "Activity",
"strings": {
"options": {
"hiking": "Hiking",
"bicycle": "Cycling",
"mtb": "Mountainbiking",
"horse": "Horseriding",
"Ski": "Skiing"
}
}
}

View file

@ -7,7 +7,8 @@
"ref"
],
"moreFields": [
"material"
"material",
"activity"
],
"geometry": [
"point",

View file

@ -6,6 +6,9 @@
"map_size",
"direction"
],
"moreFields": [
"activity"
],
"geometry": [
"point",
"vertex"

View file

@ -97,6 +97,16 @@ en:
'yes': Public
# 'terms: permitted,private,public'
terms: '[translate with synonyms or related terms for ''Allowed Access'', separated by commas]'
activity:
# 'hiking=*, bicycle=*, mtb=*, horse=*, ski=*'
label: Activity
options:
Ski: Skiing
bicycle: Cycling
hiking: Hiking
horse: Horseriding
mtb: Mountainbiking
terms: '[translate with synonyms or related terms for ''Activity'', separated by commas]'
addr/interpolation:
# 'addr:interpolation=*'
label: Type