forked from MapComplete/MapComplete
		
	Merge pull request 'add group_hostel based on tourism_accomodation' (#2317) from Osmwithspace/MapComplete:layer_hostel into develop
Reviewed-on: MapComplete/MapComplete#2317 Reviewed-by: Pieter Vander Vennet <pietervdvn@posteo.net>
This commit is contained in:
		
						commit
						b8864bd71c
					
				
					 2 changed files with 103 additions and 0 deletions
				
			
		| 
						 | 
					@ -308,6 +308,42 @@
 | 
				
			||||||
      }
 | 
					      }
 | 
				
			||||||
    },
 | 
					    },
 | 
				
			||||||
    "{preset_type_select()}",
 | 
					    "{preset_type_select()}",
 | 
				
			||||||
 | 
					    {
 | 
				
			||||||
 | 
					      "condition": {
 | 
				
			||||||
 | 
					        "and": [
 | 
				
			||||||
 | 
					          "tourism=hostel"
 | 
				
			||||||
 | 
					        ]
 | 
				
			||||||
 | 
					      },
 | 
				
			||||||
 | 
					      "question": {
 | 
				
			||||||
 | 
					        "de": "Ist diese Unterkunft ausschließlich für Gruppen?",
 | 
				
			||||||
 | 
					        "en": "Is this hostel exclusively for groups?"
 | 
				
			||||||
 | 
					      },
 | 
				
			||||||
 | 
					      "mappings": [
 | 
				
			||||||
 | 
					        {
 | 
				
			||||||
 | 
					          "if": {
 | 
				
			||||||
 | 
					            "and": [
 | 
				
			||||||
 | 
					              "group_only=yes"
 | 
				
			||||||
 | 
					            ]
 | 
				
			||||||
 | 
					          },
 | 
				
			||||||
 | 
					          "then": {
 | 
				
			||||||
 | 
					            "en": "This hostel is exclusively for groups",
 | 
				
			||||||
 | 
					            "de": "Diese Unterkunft ist ausschließlich für Gruppen"
 | 
				
			||||||
 | 
					          }
 | 
				
			||||||
 | 
					        },
 | 
				
			||||||
 | 
					        {
 | 
				
			||||||
 | 
					          "if": {
 | 
				
			||||||
 | 
					            "and": [
 | 
				
			||||||
 | 
					              "group_only=no"
 | 
				
			||||||
 | 
					            ]
 | 
				
			||||||
 | 
					          },
 | 
				
			||||||
 | 
					          "then": {
 | 
				
			||||||
 | 
					            "en": "This hostel is not exclusively for groups",
 | 
				
			||||||
 | 
					            "de": "Diese Unterkunft ist nicht ausschließlich für Gruppen"
 | 
				
			||||||
 | 
					          }
 | 
				
			||||||
 | 
					        }
 | 
				
			||||||
 | 
					      ],
 | 
				
			||||||
 | 
					      "id": "group_only"
 | 
				
			||||||
 | 
					    },
 | 
				
			||||||
    "brand",
 | 
					    "brand",
 | 
				
			||||||
    "contact",
 | 
					    "contact",
 | 
				
			||||||
    "wheelchair-access",
 | 
					    "wheelchair-access",
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -47,6 +47,73 @@
 | 
				
			||||||
        "name": null,
 | 
					        "name": null,
 | 
				
			||||||
        "isCounted": false
 | 
					        "isCounted": false
 | 
				
			||||||
      }
 | 
					      }
 | 
				
			||||||
 | 
					    },
 | 
				
			||||||
 | 
					    {
 | 
				
			||||||
 | 
					      "builtin": "tourism_accomodation",
 | 
				
			||||||
 | 
					      "override": {
 | 
				
			||||||
 | 
					        "id": "group_hostel",
 | 
				
			||||||
 | 
					        "minzoom": 7,
 | 
				
			||||||
 | 
					        "=filter": null,
 | 
				
			||||||
 | 
					        "name": {
 | 
				
			||||||
 | 
					          "en": "Hostels for groups and scouts",
 | 
				
			||||||
 | 
					          "de": "Gruppenunterkünfte für Gruppen/Pfadfinder:innen"
 | 
				
			||||||
 | 
					        },
 | 
				
			||||||
 | 
					        "source": {
 | 
				
			||||||
 | 
					          "=osmTags": {
 | 
				
			||||||
 | 
					            "and": [
 | 
				
			||||||
 | 
					              "tourism=hostel",
 | 
				
			||||||
 | 
					              {
 | 
				
			||||||
 | 
					                "or": [
 | 
				
			||||||
 | 
					                  "scout=yes",
 | 
				
			||||||
 | 
					                  "group_only=yes"
 | 
				
			||||||
 | 
					                ]
 | 
				
			||||||
 | 
					              }
 | 
				
			||||||
 | 
					            ]
 | 
				
			||||||
 | 
					          }
 | 
				
			||||||
 | 
					        },
 | 
				
			||||||
 | 
					        "=presets": [
 | 
				
			||||||
 | 
					          {
 | 
				
			||||||
 | 
					            "title": {
 | 
				
			||||||
 | 
					              "en": "Hostel exclusively for groups",
 | 
				
			||||||
 | 
					              "de": "Unterkunft ausschließlich für Gruppen/Pfadfinder:innen"
 | 
				
			||||||
 | 
					            },
 | 
				
			||||||
 | 
					            "tags": [
 | 
				
			||||||
 | 
					              "tourism=hostel",
 | 
				
			||||||
 | 
					              "group_only=yes"
 | 
				
			||||||
 | 
					            ]
 | 
				
			||||||
 | 
					          }
 | 
				
			||||||
 | 
					        ]
 | 
				
			||||||
 | 
					      }
 | 
				
			||||||
 | 
					    },
 | 
				
			||||||
 | 
					    {
 | 
				
			||||||
 | 
					      "builtin": "tourism_accomodation",
 | 
				
			||||||
 | 
					      "override": {
 | 
				
			||||||
 | 
					        "id": "hostel",
 | 
				
			||||||
 | 
					        "minzoom": 16,
 | 
				
			||||||
 | 
					        "filter": {
 | 
				
			||||||
 | 
					          "sameAs": "group_hostel"
 | 
				
			||||||
 | 
					        },
 | 
				
			||||||
 | 
					        "name": null,
 | 
				
			||||||
 | 
					        "isCounted": false,
 | 
				
			||||||
 | 
					        "source": {
 | 
				
			||||||
 | 
					          "=osmTags": {
 | 
				
			||||||
 | 
					            "and": [
 | 
				
			||||||
 | 
					              "tourism=hostel"
 | 
				
			||||||
 | 
					            ]
 | 
				
			||||||
 | 
					          }
 | 
				
			||||||
 | 
					        },
 | 
				
			||||||
 | 
					        "=presets": [
 | 
				
			||||||
 | 
					          {
 | 
				
			||||||
 | 
					            "title": {
 | 
				
			||||||
 | 
					              "en": "Hostel",
 | 
				
			||||||
 | 
					              "de": "Gruppenunterkunft"
 | 
				
			||||||
 | 
					            },
 | 
				
			||||||
 | 
					            "tags": [
 | 
				
			||||||
 | 
					              "tourism=hostel"
 | 
				
			||||||
 | 
					            ]
 | 
				
			||||||
 | 
					          }
 | 
				
			||||||
 | 
					        ]
 | 
				
			||||||
 | 
					      }
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
  ]
 | 
					  ]
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue