{
  "id": "campersite",
  "title": {
    "en": "Campersites"
  },
  "shortDescription": {
    "en": "Find sites to spend the night with your camper"
  },
  "description": {
    "en": "This site collects all official camper stopover places and places where you can dump grey and black water. You can add details about the services provided and the cost. Add pictures and reviews. This is a website and a webapp. The data is stored in OpenStreetMap, so it will be free forever and can be re-used by any app."
  },
  "language": [
    "en"
  ],
  "maintainer": "joost schouppe",
  "icon": "./assets/themes/campersites/caravan.svg",
  "version": "0",
  "startLat": 43.14,
  "startLon": 3.14,
  "startZoom": 14,
  "widenFactor": 0.05,
  "socialImage": "./assets/themes/campersites/Bar%C3%9Fel_Wohnmobilstellplatz.jpg",
  "layers": [
    {
      "id": "caravansites",
      "name": {
        "en": "Camper sites"
      },
      "minzoom": 10,
      "source": {
        "osmTags": {
          "and": [
            "tourism=caravan_site",
            "permanent_camping!~only"
          ]
        }
      },
      "title": {
        "render": {
          "en": "Camper site {name}"
        },
        "mappings": [
          {
            "if": {
              "and": [
                "name="
              ]
            },
            "then": {
              "en": "Unnamed camper site"
            }
          }
        ]
      },
      "description": {
        "en": "camper sites"
      },
      "tagRenderings": [
        "images",
        {
          "render": {
            "en": "This place is called {name}"
          },
          "question": {
            "en": "What is this place called?"
          },
          "freeform": {
            "key": "name"
          }
        },
        {
          "question": {
            "en": "Does this place charge a fee?"
          },
          "mappings": [
            {
              "if": {
                "and": [
                  "fee=yes"
                ]
              },
              "then": {
                "en": "You need to pay for use"
              }
            },
            {
              "if": {
                "and": [
                  "fee=no",
                  "charge="
                ]
              },
              "then": {
                "en": "Can be used for free"
              }
            },
            {
              "if": "fee=no",
              "then": "Can be used for free",
              "hideInAnswer": true
            }
          ]
        },
        {
          "render": {
            "en": "This place charges {charge}"
          },
          "question": {
            "en": "How much does this place charge?"
          },
          "freeform": {
            "key": "charge"
          },
          "condition": {
            "and": [
              "fee=yes"
            ]
          }
        },
        {
          "question": {
            "en": "Does this place have a sanitary dump station?"
          },
          "mappings": [
            {
              "if": {
                "and": [
                  "sanitary_dump_station=yes"
                ]
              },
              "then": {
                "en": "This place has a sanitary dump station"
              }
            },
            {
              "if": {
                "and": [
                  "sanitary_dump_station=no"
                ]
              },
              "then": {
                "en": "This place does not have a sanitary dump station"
              }
            }
          ]
        },
        {
          "render": {
            "en": "{capacity} campers can use this place at the same time"
          },
          "question": {
            "en": "How many campers can stay here? (skip if there is no obvious number of spaces or allowed vehicles)"
          },
          "freeform": {
            "key": "capacity",
            "type": "pnat"
          }
        },
        {
          "question": {
            "en": "Does this place provide internet access?"
          },
          "mappings": [
            {
              "if": {
                "and": [
                  "internet_access=yes"
                ]
              },
              "then": {
                "en": "There is internet access"
              }
            },
            {
              "if": {
                "or": [
                  "internet_access=wifi",
                  "internet_access=wlan"
                ]
              },
              "then": {
                "en": "There is internet access"
              },
              "hideInAnswer": true
            },
            {
              "if": {
                "and": [
                  "internet_access=no"
                ]
              },
              "then": {
                "en": "There is no internet access"
              }
            }
          ]
        },
        {
          "question": {
            "en": "Do you have to pay for the internet access?"
          },
          "mappings": [
            {
              "if": {
                "and": [
                  "internet_access:fee=yes"
                ]
              },
              "then": {
                "en": "You need to pay extra for internet access"
              }
            },
            {
              "if": {
                "and": [
                  "internet_access:fee=no"
                ]
              },
              "then": {
                "en": "You do not need to pay extra for internet access"
              }
            }
          ],
          "condition": {
            "and": [
              "internet_access=yes"
            ]
          }
        },
        {
          "question": {
            "en": "Does this place have toilets?"
          },
          "mappings": [
            {
              "if": {
                "and": [
                  "toilets=yes"
                ]
              },
              "then": {
                "en": "This place has toilets"
              }
            },
            {
              "if": {
                "and": [
                  "toilets=no"
                ]
              },
              "then": {
                "en": "This place does not have toilets"
              }
            }
          ]
        },
        {
          "render": {
            "en": "Official website: <a href='{website}'>{website}</a>"
          },
          "freeform": {
            "type": "url",
            "key": "website"
          },
          "question": {
            "en": "Does this place have a website?"
          }
        },
        {
          "question": {
            "en": "Does this place offer spots for long term rental?"
          },
          "mappings": [
            {
              "if": {
                "and": [
                  "permanent_camping=yes"
                ]
              },
              "then": {
                "en": "Yes, there are some spots for long term rental, but you can also stay on a daily basis"
              }
            },
            {
              "if": {
                "and": [
                  "permanent_camping=no"
                ]
              },
              "then": {
                "en": "No, there are no permanent guests here"
              }
            },
            {
              "if": {
                "and": [
                  "permanent_camping=only"
                ]
              },
              "then": {
                "en": "It is only possible to stay here if you have a long term contract(this place will disappear from this map if you choose this)"
              }
            }
          ]
        },
        {
          "render": {
            "en": "More details about this place: {description}"
          },
          "question": {
            "en": "Would you like to add a general description of this place? (Do not repeat information previously asked or shown above. Please keep it objective - opinions go into the reviews)"
          },
          "freeform": {
            "key": "description",
            "type": "text"
          }
        },
        "questions",
        "reviews"
      ],
      "hideUnderlayingFeaturesMinPercentage": 0,
      "icon": {
        "render": "circle:white;./assets/themes/campersites/caravan.svg",
        "mappings": [
          {
            "if": {
              "and": [
                "fee=no"
              ]
            },
            "then": "circle:white;./assets/themes/campersites/caravan_green.svg"
          }
        ]
      },
      "width": {
        "render": "8"
      },
      "iconSize": {
        "render": "40,40,center"
      },
      "color": {
        "render": "#00f"
      },
      "presets": [
        {
          "tags": [
            "tourism=caravan_site"
          ],
          "title": {
            "en": "camper site"
          },
          "description": {
            "en": "Add a new official camper site. These are designated places to stay overnight with your camper. They might look like a real camping or just look like a parking. They might not be signposted at all, but just be defined in a municipal decision. A regular parking intended for campers where it is not expected to spend the night, is -not- a camper site "
          }
        }
      ],
      "wayHandling": 2
    },
    {
      "id": "dumpstations",
      "name": {
        "en": "Sanitary dump stations"
      },
      "minzoom": 10,
      "source": {
        "osmTags": {
          "and": [
            "amenity=sanitary_dump_station",
            "vehicle!~no"
          ]
        }
      },
      "title": {
        "render": {
          "en": "Dump station {name}"
        },
        "mappings": [
          {
            "if": {
              "and": [
                "name="
              ]
            },
            "then": {
              "en": "Dump station"
            }
          }
        ]
      },
      "description": {
        "en": "Sanitary dump stations"
      },
      "tagRenderings": [
        "images",
        {
          "question": {
            "en": "Does this place charge a fee?"
          },
          "mappings": [
            {
              "if": {
                "and": [
                  "fee=yes"
                ]
              },
              "then": {
                "en": "You need to pay for use"
              }
            },
            {
              "if": {
                "and": [
                  "fee=no"
                ]
              },
              "then": {
                "en": "Can be used for free"
              }
            }
          ]
        },
        {
          "render": {
            "en": "This place charges {charge}"
          },
          "question": {
            "en": "How much does this place charge?"
          },
          "freeform": {
            "key": "charge"
          },
          "condition": {
            "and": [
              "fee=yes"
            ]
          }
        },
        {
          "question": {
            "en": "Does this place have a water point?"
          },
          "mappings": [
            {
              "if": {
                "and": [
                  "water_point=yes"
                ]
              },
              "then": {
                "en": "This place has a water point"
              }
            },
            {
              "if": {
                "and": [
                  "water_point=no"
                ]
              },
              "then": {
                "en": "This place does not have a water point"
              }
            }
          ]
        },
        {
          "question": {
            "en": "Can you dispose of grey water here?"
          },
          "mappings": [
            {
              "if": {
                "and": [
                  "sanitary_dump_station:grey_water=yes"
                ]
              },
              "then": {
                "en": "You can dispose of grey water here"
              }
            },
            {
              "if": {
                "and": [
                  "sanitary_dump_station:grey_water=no"
                ]
              },
              "then": {
                "en": "You cannot dispose of gray water here"
              }
            }
          ]
        },
        {
          "question": {
            "en": "Can you dispose of chemical toilet waste here?"
          },
          "mappings": [
            {
              "if": {
                "and": [
                  "sanitary_dump_station:chemical_toilet=yes"
                ]
              },
              "then": {
                "en": "You can dispose of chemical toilet waste here"
              }
            },
            {
              "if": {
                "and": [
                  "sanitary_dump_station:chemical_toilet=no"
                ]
              },
              "then": {
                "en": "You cannot dispose of chemical toilet waste here"
              }
            }
          ]
        },
        {
          "question": {
            "en": "Who can use this dump station?"
          },
          "mappings": [
            {
              "if": {
                "and": [
                  "access=network"
                ]
              },
              "then": {
                "en": "You need a network key/code to use this"
              }
            },
            {
              "if": {
                "and": [
                  "access=customers"
                ]
              },
              "then": {
                "en": "You need to be a customer of camping/campersite to use this place"
              }
            },
            {
              "if": {
                "and": [
                  "access=public"
                ]
              },
              "then": {
                "en": "Anyone can use this dump station"
              },
              "hideInAnswer": true
            },
            {
              "if": {
                "and": [
                  "access=yes"
                ]
              },
              "then": {
                "en": "Anyone can use this dump station"
              }
            }
          ]
        },
        {
          "render": {
            "en": "This station is part of network {network}"
          },
          "question": {
            "en": "What network is this place a part of? (skip if none)"
          },
          "freeform": {
            "key": "network"
          }
        }
      ],
      "hideUnderlayingFeaturesMinPercentage": 0,
      "icon": {
        "render": "circle:white;./assets/themes/campersites/sanitary_dump_station.svg"
      },
      "width": {
        "render": "8"
      },
      "iconSize": {
        "render": "32,32,center"
      },
      "color": {
        "render": "#00f"
      },
      "presets": [
        {
          "tags": [
            "amenity=sanitary_dump_station"
          ],
          "title": {
            "en": "sanitary dump station"
          },
          "description": {
            "en": "Add a new sanitary dump station. This is a place where camper drivers can dump waste water or chemical toilet waste. Often there's also drinking water and electricity."
          }
        }
      ]
    }
  ],
  "roamingRenderings": [
    {
      "render": {
        "en": "This place is operated by {operator}"
      },
      "question": {
        "en": "Who operates this place?"
      },
      "freeform": {
        "key": "operator"
      }
    },
    {
      "question": {
        "en": "Does this place have a power supply?"
      },
      "mappings": [
        {
          "if": {
            "and": [
              "power_supply=yes"
            ]
          },
          "then": {
            "en": "This place has a power supply"
          }
        },
        {
          "if": {
            "and": [
              "power_supply=no"
            ]
          },
          "then": {
            "en": "This place does not have power supply"
          }
        }
      ]
    }
  ]
}
