Skip to content

Commit

Permalink
Merge pull request #4507 from willemarcel/shop_agrarian
Browse files Browse the repository at this point in the history
add shop=agrarian preset and agrarian=* field
  • Loading branch information
bhousel authored Nov 7, 2017
2 parents 0d8b90d + 59426e8 commit 9fa078b
Show file tree
Hide file tree
Showing 7 changed files with 83 additions and 0 deletions.
8 changes: 8 additions & 0 deletions data/presets.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -165,6 +165,9 @@ en:
aeroway:
# aeroway=*
label: Type
agrarian:
# agrarian=*
label: Products
amenity:
# amenity=*
label: Type
Expand Down Expand Up @@ -4513,6 +4516,11 @@ en:
# shop=*
name: Shop
terms: '<translate with synonyms or related terms for ''Shop'', separated by commas>'
shop/agrarian:
# shop=agrarian
name: Agriculture Shop
# 'terms: agricultural inputs,agricultural machines,seeds,pesticides,fertilizer,agricultural tools'
terms: '<translate with synonyms or related terms for ''Agriculture Shop'', separated by commas>'
shop/alcohol:
# shop=alcohol
name: Liquor Store
Expand Down
5 changes: 5 additions & 0 deletions data/presets/fields.json
Original file line number Diff line number Diff line change
Expand Up @@ -201,6 +201,11 @@
"type": "typeCombo",
"label": "Type"
},
"agrarian": {
"key": "agrarian",
"type": "semiCombo",
"label": "Products"
},
"amenity": {
"key": "amenity",
"type": "typeCombo",
Expand Down
5 changes: 5 additions & 0 deletions data/presets/fields/agrarian.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"key": "agrarian",
"type": "semiCombo",
"label": "Products"
}
27 changes: 27 additions & 0 deletions data/presets/presets.json
Original file line number Diff line number Diff line change
Expand Up @@ -13519,6 +13519,33 @@
"name": "Vacant Shop",
"searchable": false
},
"shop/agrarian": {
"icon": "shop",
"fields": [
"name",
"operator",
"agrarian",
"address",
"building_area",
"opening_hours"
],
"geometry": [
"point",
"area"
],
"terms": [
"agricultural inputs",
"agricultural machines",
"seeds",
"pesticides",
"fertilizer",
"agricultural tools"
],
"tags": {
"shop": "agrarian"
},
"name": "Agriculture Shop"
},
"shop/alcohol": {
"icon": "alcohol-shop",
"fields": [
Expand Down
27 changes: 27 additions & 0 deletions data/presets/presets/shop/agrarian.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
{
"icon": "shop",
"fields": [
"name",
"operator",
"agrarian",
"address",
"building_area",
"opening_hours"
],
"geometry": [
"point",
"area"
],
"terms": [
"agricultural inputs",
"agricultural machines",
"seeds",
"pesticides",
"fertilizer",
"agricultural tools"
],
"tags": {
"shop": "agrarian"
},
"name": "Agriculture Shop"
}
4 changes: 4 additions & 0 deletions data/taginfo.json
Original file line number Diff line number Diff line change
Expand Up @@ -2591,6 +2591,10 @@
"key": "shop",
"value": "vacant"
},
{
"key": "shop",
"value": "agrarian"
},
{
"key": "shop",
"value": "alcohol"
Expand Down
7 changes: 7 additions & 0 deletions dist/locales/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -1226,6 +1226,9 @@
"aeroway": {
"label": "Type"
},
"agrarian": {
"label": "Products"
},
"amenity": {
"label": "Type"
},
Expand Down Expand Up @@ -5059,6 +5062,10 @@
"name": "Vacant Shop",
"terms": ""
},
"shop/agrarian": {
"name": "Agriculture Shop",
"terms": "agricultural inputs,agricultural machines,seeds,pesticides,fertilizer,agricultural tools"
},
"shop/alcohol": {
"name": "Liquor Store",
"terms": "alcohol,beer,booze,wine"
Expand Down

0 comments on commit 9fa078b

Please sign in to comment.