Skip to content

Commit

Permalink
consolidate optional fields of "POI" presets into template "presets"
Browse files Browse the repository at this point in the history
  • Loading branch information
tyrasd committed Apr 13, 2023
1 parent d9b12bc commit bdae3f0
Show file tree
Hide file tree
Showing 172 changed files with 451 additions and 1,166 deletions.
25 changes: 25 additions & 0 deletions data/presets/@templates/contact.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
{
"fields": [],
"moreFields": [
"email",
"fax",
"phone",
"website"
],
"geometry": [
"point"
],
"tags": {
"@template": "contact"
},
"searchable": false,
"locationSet": {
"include": [
"999"
],
"exclude": [
"999"
]
},
"name": "{point}"
}
27 changes: 27 additions & 0 deletions data/presets/@templates/internet_access.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
{
"fields": [
"internet_access",
"internet_access/fee"
],
"moreFields": [
"internet_access",
"internet_access/fee",
"internet_access/ssid"
],
"geometry": [
"point"
],
"tags": {
"@template": "internet_access"
},
"searchable": false,
"locationSet": {
"include": [
"999"
],
"exclude": [
"999"
]
},
"name": "{point}"
}
33 changes: 33 additions & 0 deletions data/presets/@templates/poi.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
{
"fields": [],
"moreFields": [
"{@templates/contact}",
"address",
"contact/facebook",
"gnis/feature_id-US",
"level",
"not/name",
"opening_hours",
"opening_hours/covid19",
"payment_multi",
"ref/vatin",
"ref/FR/siret-FR",
"wheelchair"
],
"geometry": [
"point"
],
"tags": {
"@template": "poi"
},
"searchable": false,
"locationSet": {
"include": [
"999"
],
"exclude": [
"999"
]
},
"name": "{point}"
}
6 changes: 2 additions & 4 deletions data/presets/_attraction.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,10 @@
"charge_fee"
],
"moreFields": [
"{@templates/contact}",
"address",
"email",
"fax",
"opening_hours/covid19",
"payment_multi",
"phone"
"payment_multi"
],
"geometry": [
"point",
Expand Down
11 changes: 4 additions & 7 deletions data/presets/aeroway/aerodrome.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,15 +7,12 @@
"address",
"operator",
"operator/type",
"internet_access",
"internet_access/fee",
"internet_access/ssid"
"{@templates/internet_access}"
],
"moreFields": [
"email",
"fax",
"gnis/feature_id-US",
"phone"
"{@templates/contact}",
"{@templates/internet_access}",
"gnis/feature_id-US"
],
"geometry": [
"area",
Expand Down
8 changes: 2 additions & 6 deletions data/presets/aeroway/spaceport.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,8 @@
"wikidata"
],
"moreFields": [
"email",
"fax",
"internet_access",
"internet_access/fee",
"internet_access/ssid",
"phone"
"{@templates/contact}",
"{@templates/internet_access}"
],
"geometry": [
"area",
Expand Down
8 changes: 5 additions & 3 deletions data/presets/amenity/_bus_station.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,11 @@
"name",
"building_area",
"operator",
"internet_access",
"internet_access/fee",
"internet_access/ssid"
"{@templates/internet_access}"
],
"moreFields": [
"{@templates/internet_access}",
"{amenity}"
],
"geometry": [
"point",
Expand Down
5 changes: 2 additions & 3 deletions data/presets/amenity/_coworking_space.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,10 @@
"address",
"building_area_yes",
"opening_hours",
"internet_access",
"internet_access/fee",
"internet_access/ssid"
"{@templates/internet_access}"
],
"moreFields": [
"{@templates/internet_access}",
"opening_hours/covid19",
"ref/FR/siret-FR"
],
Expand Down
4 changes: 1 addition & 3 deletions data/presets/amenity/_embassy.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,7 @@
"building_area_yes"
],
"moreFields": [
"email",
"fax",
"phone",
"{@templates/contact}",
"wheelchair"
],
"geometry": [
Expand Down
10 changes: 1 addition & 9 deletions data/presets/amenity/animal_boarding.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,15 +9,7 @@
"animal_boarding"
],
"moreFields": [
"contact/facebook",
"email",
"fax",
"gnis/feature_id-US",
"level",
"opening_hours/covid19",
"payment_multi",
"phone",
"wheelchair"
"{@templates/poi}"
],
"geometry": [
"point",
Expand Down
10 changes: 1 addition & 9 deletions data/presets/amenity/animal_breeding.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,15 +9,7 @@
"animal_breeding"
],
"moreFields": [
"contact/facebook",
"email",
"fax",
"gnis/feature_id-US",
"level",
"opening_hours/covid19",
"ref/FR/siret-FR",
"phone",
"wheelchair"
"{@templates/poi}"
],
"geometry": [
"point",
Expand Down
9 changes: 1 addition & 8 deletions data/presets/amenity/animal_shelter.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,14 +9,7 @@
"animal_shelter"
],
"moreFields": [
"contact/facebook",
"email",
"fax",
"gnis/feature_id-US",
"level",
"opening_hours/covid19",
"phone",
"wheelchair"
"{@templates/poi}"
],
"geometry": [
"point",
Expand Down
16 changes: 3 additions & 13 deletions data/presets/amenity/arts_centre.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,20 +8,10 @@
"website"
],
"moreFields": [
"{@templates/internet_access}",
"{@templates/poi}",
"charge_fee",
"contact/facebook",
"email",
"fax",
"fee",
"gnis/feature_id-US",
"internet_access",
"internet_access/fee",
"internet_access/ssid",
"level",
"opening_hours/covid19",
"payment_multi",
"phone",
"wheelchair"
"fee"
],
"geometry": [
"point",
Expand Down
17 changes: 3 additions & 14 deletions data/presets/amenity/bank.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,23 +10,12 @@
"drive_through"
],
"moreFields": [
"{@templates/internet_access}",
"{@templates/poi}",
"air_conditioning",
"branch_brand",
"brand",
"contact/facebook",
"currency_multi",
"email",
"fax",
"gnis/feature_id-US",
"internet_access",
"internet_access/fee",
"internet_access/ssid",
"level",
"opening_hours/covid19",
"phone",
"ref/vatin",
"ref/FR/siret-FR",
"wheelchair"
"currency_multi"
],
"geometry": [
"point",
Expand Down
18 changes: 3 additions & 15 deletions data/presets/amenity/bar.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,26 +9,14 @@
"brewery"
],
"moreFields": [
"{@templates/internet_access}",
"{@templates/poi}",
"air_conditioning",
"contact/facebook",
"email",
"fax",
"gnis/feature_id-US",
"internet_access",
"internet_access/fee",
"internet_access/ssid",
"level",
"microbrewery",
"opening_hours/covid19",
"operator",
"outdoor_seating",
"payment_multi",
"phone",
"ref/vatin",
"ref/FR/siret-FR",
"smoking",
"sport_pub",
"wheelchair"
"sport_pub"
],
"geometry": [
"point",
Expand Down
10 changes: 2 additions & 8 deletions data/presets/amenity/bicycle_rental.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,15 +10,9 @@
"payment_multi_fee"
],
"moreFields": [
"{@templates/poi}",
"address",
"covered",
"email",
"fax",
"level",
"opening_hours",
"opening_hours/covid19",
"phone",
"wheelchair"
"covered"
],
"geometry": [
"point",
Expand Down
10 changes: 2 additions & 8 deletions data/presets/amenity/boat_rental.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,15 +10,9 @@
"charge_fee"
],
"moreFields": [
"{@templates/poi}",
"access_simple",
"address",
"contact/facebook",
"email",
"fax",
"opening_hours/covid19",
"ref/FR/siret-FR",
"phone",
"wheelchair"
"address"
],
"geometry": [
"point",
Expand Down
10 changes: 1 addition & 9 deletions data/presets/amenity/bureau_de_change.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,15 +9,7 @@
"building_area"
],
"moreFields": [
"contact/facebook",
"email",
"fax",
"level",
"opening_hours",
"opening_hours/covid19",
"ref/FR/siret-FR",
"phone",
"wheelchair"
"{@templates/poi}"
],
"geometry": [
"point",
Expand Down
Loading

0 comments on commit bdae3f0

Please sign in to comment.