Skip to content

Commit

Permalink
Add field for opening_hours:drive_through=* (#999)
Browse files Browse the repository at this point in the history
  • Loading branch information
arch0345 authored Dec 16, 2023
1 parent def8e98 commit 8ee33f2
Show file tree
Hide file tree
Showing 7 changed files with 22 additions and 4 deletions.
12 changes: 12 additions & 0 deletions data/fields/opening_hours/drive_through.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
{
"key": "opening_hours:drive_through",
"type": "combo",
"label": "Drive Through Hours",
"placeholder": "Same as regular business hours",
"prerequisiteTag": {
"key": "drive_through",
"value": "yes"
},
"snake_case": false,
"caseSensitive": true
}
3 changes: 2 additions & 1 deletion data/presets/amenity/bank.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,8 @@
"building_area_yes",
"opening_hours",
"atm",
"drive_through"
"drive_through",
"opening_hours/drive_through"
],
"moreFields": [
"{@templates/internet_access}",
Expand Down
3 changes: 2 additions & 1 deletion data/presets/amenity/cafe.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,8 @@
"outdoor_seating",
"{@templates/internet_access}",
"phone",
"website"
"website",
"opening_hours/drive_through"
],
"moreFields": [
"{@templates/internet_access}",
Expand Down
1 change: 1 addition & 0 deletions data/presets/amenity/fast_food.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
"building_area_yes",
"opening_hours",
"drive_through",
"opening_hours/drive_through",
"phone",
"website"
],
Expand Down
1 change: 1 addition & 0 deletions data/presets/amenity/ice_cream.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
"delivery",
"diet_multi",
"drive_through",
"opening_hours/drive_through",
"takeaway",
"fhrs/id-GB",
"website/menu"
Expand Down
3 changes: 2 additions & 1 deletion data/presets/amenity/pharmacy.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,8 @@
"building_area_yes",
"opening_hours",
"dispensing",
"drive_through"
"drive_through",
"opening_hours/drive_through"
],
"moreFields": [
"{@templates/poi}",
Expand Down
3 changes: 2 additions & 1 deletion data/presets/shop/alcohol.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@
"icon": "fas-wine-bottle",
"fields": [
"{shop}",
"drive_through"
"drive_through",
"opening_hours/drive_through"
],
"moreFields": [
"{shop}",
Expand Down

0 comments on commit 8ee33f2

Please sign in to comment.