Skip to content

Commit

Permalink
Add Diplomatic Office, Embassy, Consulate, and Liaison Office presets (
Browse files Browse the repository at this point in the history
…close #6144)

Deprecate amenity=embassy
  • Loading branch information
quincylvania committed Apr 5, 2019
1 parent 550a4df commit ae8f2c2
Show file tree
Hide file tree
Showing 17 changed files with 215 additions and 7 deletions.
4 changes: 4 additions & 0 deletions data/deprecated.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,10 @@
"old": {"amenity": "community_center"},
"replace": {"amenity": "community_centre"}
},
{
"old": {"amenity": "embassy"},
"replace": {"office": "diplomatic"}
},
{
"old": {"amenity": "ev_charging"},
"replace": {"amenity": "charging_station"}
Expand Down
35 changes: 34 additions & 1 deletion data/presets.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -358,6 +358,9 @@ en:
construction:
# construction=*
label: Type
consulate:
# consulate=*
label: Type
contact/webcam:
# 'contact:webcam=*'
label: Webcam URL
Expand Down Expand Up @@ -510,6 +513,12 @@ en:
diet_multi:
# 'diet:=*'
label: Diet Types
diplomatic:
# diplomatic=*
label: Type
diplomatic/services:
# 'diplomatic:services:=*'
label: Services
direction:
# direction=*
label: Direction (Degrees Clockwise)
Expand Down Expand Up @@ -632,6 +641,9 @@ en:
label: Type
# embankment field placeholder
placeholder: Default
embassy:
# embassy=*
label: Type
emergency:
# emergency=*
label: Emergency
Expand Down Expand Up @@ -1003,6 +1015,9 @@ en:
label: Levels
# levels field placeholder
placeholder: '2, 4, 6...'
liaison:
# liaison=*
label: Type
lit:
# lit=*
label: Lit
Expand Down Expand Up @@ -1938,6 +1953,9 @@ en:
'yes': 'Yes'
# takeaway field placeholder
placeholder: 'Yes, No, Takeaway Only...'
target:
# target=*
label: Target
tidal:
# tidal=*
label: Tidal
Expand Down Expand Up @@ -2517,7 +2535,6 @@ en:
amenity/embassy:
# amenity=embassy
name: Embassy
terms: '<translate with synonyms or related terms for ''Embassy'', separated by commas>'
amenity/fast_food:
# amenity=fast_food
name: Fast Food
Expand Down Expand Up @@ -5439,6 +5456,22 @@ en:
name: Coworking Space
# 'terms: coworking,office'
terms: '<translate with synonyms or related terms for ''Coworking Space'', separated by commas>'
office/diplomatic:
# office=diplomatic
name: Diplomatic Office
terms: '<translate with synonyms or related terms for ''Diplomatic Office'', separated by commas>'
office/diplomatic/consulate:
# 'office=diplomatic, diplomatic=consulate'
name: Consulate
terms: '<translate with synonyms or related terms for ''Consulate'', separated by commas>'
office/diplomatic/embassy:
# 'office=diplomatic, diplomatic=embassy'
name: Embassy
terms: '<translate with synonyms or related terms for ''Embassy'', separated by commas>'
office/diplomatic/liaison:
# 'office=diplomatic, diplomatic=liaison'
name: Liaison Office
terms: '<translate with synonyms or related terms for ''Liaison Office'', separated by commas>'
office/educational_institution:
# office=educational_institution
name: Educational Institution
Expand Down
6 changes: 6 additions & 0 deletions data/presets/fields.json
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,7 @@
"comment": {"key": "comment", "type": "textarea", "label": "Changeset Comment", "placeholder": "Brief description of your contributions (required)"},
"communication_multi": {"key": "communication:", "type": "multiCombo", "label": "Communication Types"},
"construction": {"key": "construction", "type": "combo", "label": "Type"},
"consulate": {"key": "consulate", "type": "combo", "label": "Type"},
"contact/webcam": {"key": "contact:webcam", "type": "url", "icon": "website", "label": "Webcam URL", "placeholder": "http://example.com/"},
"content": {"key": "content", "type": "combo", "label": "Content", "options": ["silage", "water", "oil", "fuel", "slurry", "gas", "manure", "sewage"]},
"conveying": {"key": "conveying", "type": "typeCombo", "label": "Movement Direction", "strings": {"options": {"forward": "Forward", "backward": "Backward", "reversible": "Reversible"}}},
Expand Down Expand Up @@ -93,6 +94,8 @@
"devices": {"key": "devices", "type": "number", "minValue": 0, "label": "Devices", "placeholder": "1, 2, 3..."},
"diaper": {"key": "diaper", "type": "combo", "label": "Diaper Changing Available", "options": ["yes", "no", "room", "1", "2", "3", "4", "5"]},
"diet_multi": {"key": "diet:", "type": "multiCombo", "label": "Diet Types"},
"diplomatic": {"key": "diplomatic", "type": "combo", "label": "Type"},
"diplomatic/services": {"key": "diplomatic:services:", "type": "multiCombo", "label": "Services"},
"direction_cardinal": {"key": "direction", "type": "combo", "label": "Direction", "strings": {"options": {"N": "North", "E": "East", "S": "South", "W": "West", "NE": "Northeast", "SE": "Southeast", "SW": "Southwest", "NW": "Northwest", "NNE": "North-northeast", "ENE": "East-northeast", "ESE": "East-southeast", "SSE": "South-southeast", "SSW": "South-southwest", "WSW": "West-southwest", "WNW": "West-northwest", "NNW": "North-northwest"}}},
"direction_clock": {"key": "direction", "type": "combo", "label": "Direction", "strings": {"options": {"clockwise": "Clockwise", "anticlockwise": "Counterclockwise"}}},
"direction_vertex": {"key": "direction", "type": "combo", "label": "Direction", "strings": {"options": {"forward": "Forward", "backward": "Backward", "both": "Both / All"}}},
Expand All @@ -110,6 +113,7 @@
"elevation": {"key": "ele", "type": "number", "icon": "elevation", "universal": true, "label": "Elevation"},
"email": {"key": "email", "type": "email", "placeholder": "[email protected]", "label": "Email"},
"embankment": {"key": "embankment", "type": "typeCombo", "label": "Type", "placeholder": "Default"},
"embassy": {"key": "embassy", "type": "combo", "label": "Type"},
"emergency": {"key": "emergency", "type": "check", "label": "Emergency"},
"enforcement": {"key": "enforcement", "type": "combo", "label": "Type"},
"entrance": {"key": "entrance", "type": "typeCombo", "label": "Type"},
Expand Down Expand Up @@ -192,6 +196,7 @@
"length": {"key": "length", "type": "number", "minValue": 0, "label": "Length (Meters)"},
"level": {"key": "level", "type": "combo", "label": "Level", "universal": true},
"levels": {"key": "building:levels", "type": "number", "minValue": 0, "label": "Levels", "placeholder": "2, 4, 6..."},
"liaison": {"key": "liaison", "type": "combo", "label": "Type"},
"lit": {"key": "lit", "type": "check", "label": "Lit"},
"location_pool": {"key": "location", "type": "typeCombo", "label": "Location", "strings": {"options": {"outdoor": "Outdoor", "indoor": "Indoor", "roof": "Rooftop"}}},
"location": {"key": "location", "type": "combo", "label": "Location"},
Expand Down Expand Up @@ -343,6 +348,7 @@
"switch": {"key": "switch", "type": "combo", "label": "Type", "strings": {"options": {"mechanical": "Mechanical", "circuit_breaker": "Circuit Breaker", "disconnector": "Disconnector", "earthing": "Earthing"}}},
"tactile_paving": {"key": "tactile_paving", "type": "check", "label": "Tactile Paving"},
"takeaway": {"key": "takeaway", "type": "combo", "label": "Takeaway", "placeholder": "Yes, No, Takeaway Only...", "strings": {"options": {"yes": "Yes", "no": "No", "only": "Takeaway Only"}}},
"target": {"key": "target", "type": "combo", "label": "Target"},
"tidal": {"key": "tidal", "type": "check", "label": "Tidal"},
"to": {"key": "to", "type": "text", "label": "To"},
"toilets/disposal": {"key": "toilets:disposal", "type": "combo", "label": "Disposal", "strings": {"options": {"flush": "Flush", "pitlatrine": "Pit/Latrine", "chemical": "Chemical", "bucket": "Bucket"}}},
Expand Down
5 changes: 5 additions & 0 deletions data/presets/fields/consulate.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"key": "consulate",
"type": "combo",
"label": "Type"
}
5 changes: 5 additions & 0 deletions data/presets/fields/diplomatic.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"key": "diplomatic",
"type": "combo",
"label": "Type"
}
5 changes: 5 additions & 0 deletions data/presets/fields/diplomatic/services.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"key": "diplomatic:services:",
"type": "multiCombo",
"label": "Services"
}
5 changes: 5 additions & 0 deletions data/presets/fields/embassy.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"key": "embassy",
"type": "combo",
"label": "Type"
}
5 changes: 5 additions & 0 deletions data/presets/fields/liaison.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"key": "liaison",
"type": "combo",
"label": "Type"
}
5 changes: 5 additions & 0 deletions data/presets/fields/target.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"key": "target",
"type": "combo",
"label": "Target"
}
6 changes: 5 additions & 1 deletion data/presets/presets.json
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@
"allotments/plot": {"geometry": ["area"], "fields": ["name", "ref"], "tags": {"allotments": "plot"}, "reference": {"key": "allotments", "value": "plot"}, "name": "Community Garden Plot"},
"amenity/bus_station": {"icon": "maki-bus", "fields": ["name", "building_area", "operator", "internet_access", "internet_access/fee", "internet_access/ssid"], "geometry": ["point", "area"], "tags": {"amenity": "bus_station"}, "name": "Bus Station / Terminal", "searchable": false, "replacement": "public_transport/station_bus"},
"amenity/coworking_space": {"icon": "maki-commercial", "fields": ["name", "address", "building_area", "opening_hours", "internet_access", "internet_access/fee", "internet_access/ssid"], "geometry": ["point", "area"], "tags": {"amenity": "coworking_space"}, "name": "Coworking Space", "searchable": false},
"amenity/embassy": {"icon": "maki-embassy", "fields": ["name", "country", "address", "building_area"], "moreFields": ["website", "phone", "email", "fax", "wheelchair"], "geometry": ["point", "area"], "tags": {"amenity": "embassy"}, "searchable": false, "name": "Embassy"},
"amenity/ferry_terminal": {"icon": "maki-ferry", "fields": ["name", "network", "operator", "address", "building_area"], "geometry": ["point", "vertex", "area"], "terms": [], "tags": {"amenity": "ferry_terminal"}, "matchScore": 0.95, "name": "Ferry Station / Terminal", "searchable": false, "replacement": "public_transport/station_ferry"},
"amenity/nursing_home": {"icon": "maki-wheelchair", "fields": ["name", "operator", "address", "building_area", "social_facility", "social_facility_for", "opening_hours", "wheelchair"], "geometry": ["point", "area"], "tags": {"amenity": "nursing_home"}, "reference": {"key": "social_facility", "value": "nursing_home"}, "name": "Nursing Home", "searchable": false},
"amenity/recycling": {"icon": "maki-recycling", "fields": ["recycling_type", "recycling_accepts", "collection_times"], "geometry": ["point", "area"], "terms": ["bin", "can", "bottle", "glass", "garbage", "rubbish", "scrap", "trash"], "tags": {"amenity": "recycling"}, "name": "Recycling", "searchable": false},
Expand Down Expand Up @@ -93,7 +94,6 @@
"amenity/dojo": {"icon": "maki-pitch", "fields": ["name", "sport", "address", "building_area", "opening_hours"], "moreFields": ["payment_multi", "website", "phone", "email", "fax", "wheelchair"], "geometry": ["point", "area"], "terms": ["martial arts", "dojang"], "tags": {"amenity": "dojo"}, "name": "Dojo / Martial Arts Academy"},
"amenity/drinking_water": {"icon": "maki-drinking-water", "fields": ["operator", "access_simple", "fee", "wheelchair"], "moreFields": ["lit", "covered"], "geometry": ["point"], "tags": {"amenity": "drinking_water"}, "terms": ["potable water source", "water fountain", "drinking fountain", "bubbler", "water tap"], "name": "Drinking Water"},
"amenity/driving_school": {"icon": "maki-car", "fields": ["name", "operator", "address", "building_area", "opening_hours"], "moreFields": ["payment_multi", "website", "phone", "email", "fax", "wheelchair"], "geometry": ["point", "area"], "tags": {"amenity": "driving_school"}, "name": "Driving School"},
"amenity/embassy": {"icon": "maki-embassy", "fields": ["name", "country", "address", "building_area"], "moreFields": ["website", "phone", "email", "fax", "wheelchair"], "geometry": ["point", "area"], "tags": {"amenity": "embassy"}, "name": "Embassy"},
"amenity/fast_food": {"icon": "maki-fast-food", "fields": ["name", "cuisine", "operator", "address", "building_area", "drive_through"], "moreFields": ["air_conditioning", "opening_hours", "diet_multi", "takeaway", "delivery", "smoking", "capacity", "outdoor_seating", "internet_access", "internet_access/fee", "internet_access/ssid", "payment_multi", "website", "phone", "email", "fax", "wheelchair"], "geometry": ["point", "area"], "tags": {"amenity": "fast_food"}, "terms": ["restaurant", "takeaway"], "name": "Fast Food"},
"amenity/fast_food/burger": {"icon": "maki-fast-food", "geometry": ["point", "area"], "terms": ["breakfast", "dine", "dining", "dinner", "drive-in", "eat", "grill", "lunch", "table"], "tags": {"amenity": "fast_food", "cuisine": "burger"}, "reference": {"key": "cuisine", "value": "burger"}, "name": "Burger Fast Food"},
"amenity/fast_food/chicken": {"icon": "fas-drumstick-bite", "geometry": ["point", "area"], "terms": ["breakfast", "canteen", "dine", "dining", "dinner", "drive-in", "eat", "grill", "lunch", "table"], "tags": {"amenity": "fast_food", "cuisine": "chicken"}, "reference": {"key": "cuisine", "value": "chicken"}, "name": "Chicken Fast Food"},
Expand Down Expand Up @@ -722,6 +722,10 @@
"office/charity": {"icon": "maki-suitcase", "geometry": ["point", "area"], "tags": {"office": "charity"}, "terms": ["charitable organization"], "name": "Charity Office"},
"office/company": {"icon": "maki-suitcase", "geometry": ["point", "area"], "tags": {"office": "company"}, "terms": [], "name": "Corporate Office"},
"office/coworking": {"icon": "maki-suitcase", "fields": ["{office}", "internet_access"], "moreFields": ["internet_access/fee", "internet_access/ssid"], "geometry": ["point", "area"], "terms": ["coworking", "office"], "tags": {"office": "coworking"}, "reference": {"key": "amenity", "value": "coworking_space"}, "name": "Coworking Space"},
"office/diplomatic": {"icon": "maki-embassy", "fields": ["name", "diplomatic", "country", "target", "diplomatic/services", "{office}"], "geometry": ["point", "area"], "tags": {"office": "diplomatic"}, "terms": [], "name": "Diplomatic Office"},
"office/diplomatic/consulate": {"icon": "maki-embassy", "fields": ["name", "consulate", "{office/diplomatic}"], "geometry": ["point", "area"], "tags": {"office": "diplomatic", "diplomatic": "consulate"}, "reference": {"key": "diplomatic", "value": "consulate"}, "terms": [], "name": "Consulate"},
"office/diplomatic/embassy": {"icon": "maki-embassy", "fields": ["name", "embassy", "{office/diplomatic}"], "geometry": ["point", "area"], "tags": {"office": "diplomatic", "diplomatic": "embassy"}, "reference": {"key": "diplomatic", "value": "embassy"}, "terms": [], "name": "Embassy"},
"office/diplomatic/liaison": {"icon": "maki-embassy", "fields": ["name", "liaison", "{office/diplomatic}"], "geometry": ["point", "area"], "tags": {"office": "diplomatic", "diplomatic": "liaison"}, "reference": {"key": "diplomatic", "value": "liaison"}, "terms": [], "name": "Liaison Office"},
"office/educational_institution": {"icon": "maki-school", "geometry": ["point", "area"], "tags": {"office": "educational_institution"}, "terms": [], "name": "Educational Institution"},
"office/employment_agency": {"icon": "maki-suitcase", "geometry": ["point", "area"], "tags": {"office": "employment_agency"}, "terms": ["job"], "name": "Employment Agency"},
"office/energy_supplier": {"icon": "maki-suitcase", "geometry": ["point", "area"], "tags": {"office": "energy_supplier"}, "terms": ["electricity", "energy company", "energy utility", "gas utility"], "name": "Energy Supplier Office"},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,5 +20,6 @@
"tags": {
"amenity": "embassy"
},
"searchable": false,
"name": "Embassy"
}
20 changes: 20 additions & 0 deletions data/presets/presets/office/diplomatic.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
{
"icon": "maki-embassy",
"fields": [
"name",
"diplomatic",
"country",
"target",
"diplomatic/services",
"{office}"
],
"geometry": [
"point",
"area"
],
"tags": {
"office": "diplomatic"
},
"terms": [],
"name": "Diplomatic Office"
}
22 changes: 22 additions & 0 deletions data/presets/presets/office/diplomatic/consulate.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
{
"icon": "maki-embassy",
"fields": [
"name",
"consulate",
"{office/diplomatic}"
],
"geometry": [
"point",
"area"
],
"tags": {
"office": "diplomatic",
"diplomatic": "consulate"
},
"reference": {
"key": "diplomatic",
"value": "consulate"
},
"terms": [],
"name": "Consulate"
}
22 changes: 22 additions & 0 deletions data/presets/presets/office/diplomatic/embassy.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
{
"icon": "maki-embassy",
"fields": [
"name",
"embassy",
"{office/diplomatic}"
],
"geometry": [
"point",
"area"
],
"tags": {
"office": "diplomatic",
"diplomatic": "embassy"
},
"reference": {
"key": "diplomatic",
"value": "embassy"
},
"terms": [],
"name": "Embassy"
}
22 changes: 22 additions & 0 deletions data/presets/presets/office/diplomatic/liaison.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
{
"icon": "maki-embassy",
"fields": [
"name",
"liaison",
"{office/diplomatic}"
],
"geometry": [
"point",
"area"
],
"tags": {
"office": "diplomatic",
"diplomatic": "liaison"
},
"reference": {
"key": "diplomatic",
"value": "liaison"
},
"terms": [],
"name": "Liaison Office"
}
Loading

0 comments on commit ae8f2c2

Please sign in to comment.