Merge branch 'feature/nsi-experiments' into develop

This commit is contained in:
Pieter Vander Vennet 2024-05-23 12:26:29 +02:00
commit 988bc4fe7a
12117 changed files with 203514 additions and 715 deletions

View file

@ -150,7 +150,10 @@
},
"freeform": {
"key": "brand",
"type": "string",
"type": "nsi",
"helperArgs": [
"amenity=atm"
],
"placeholder": {
"en": "Brand name",
"de": "Markenname",
@ -641,4 +644,4 @@
"enableImproveAccuracy": true,
"enableRelocation": false
}
}
}

View file

@ -114,7 +114,10 @@
},
"freeform": {
"key": "brand",
"type": "string",
"type": "nsi",
"helperArgs": [
"amenity=parcel_locker"
],
"placeholder": {
"en": "Brand",
"de": "Marke",
@ -125,71 +128,6 @@
"cs": "Značka"
}
},
"mappings": [
{
"if": "brand=Amazon Locker",
"then": {
"en": "This is an Amazon Locker",
"de": "Dies ist ein Amazon Locker",
"nl": "Dit is een Amazon Locker",
"ca": "Açò és un Amazon Locker",
"fr": "C'est un Amazon Locker",
"pl": "To jest paczkomat Amazonu",
"cs": "Toto je Amazon Locker"
},
"addExtraTags": [
"brand:wikidata=Q16974764",
"brand:wikipedia=en:Amazon Locker",
"operator=Amazon"
]
},
{
"if": "brand=DHL Packstation",
"then": {
"en": "This is a DHL Packstation",
"de": "Dies ist eine DHL-Packstation",
"nl": "Dit is een DHL Packstation",
"ca": "Açò és un DHL Packstation",
"cs": "Toto je DHL Packstation"
},
"addExtraTags": [
"brand:wikidata=Q1766703",
"brand:wikipedia=de:Packstation",
"operator=DHL"
],
"hideInAnswer": "_country!=de"
},
{
"if": "brand=Pickup Station",
"then": {
"en": "This is a DPD Pickup Station",
"de": "Dies ist eine DPD Pickup Station",
"nl": "Dit is een DPD Pickup Station",
"fr": "C'est une DPD Pickup Station",
"cs": "Toto je DPD Pickup Station"
},
"addExtraTags": [
"operator=DPD"
],
"hideInAnswer": "_country!=pl"
},
{
"if": "brand=PostNL",
"then": {
"en": "This is a PostNL Parcel Locker",
"nl": "Dit is een PostNL pakketautomaat",
"de": "Dies ist ein PostNL-Paketschließfach",
"ca": "Açò és una bústia intel·ligent de PostNL",
"fr": "C'est un PostNL Parcel Locker",
"pl": "To jest paczkomat PostNL",
"cs": "Toto je PostNL Parcel Locker"
},
"addExtraTags": [
"operator=PostNL"
],
"hideInAnswer": "_country!=nl"
}
],
"render": {
"en": "This is a {brand} parcel locker",
"de": "Dies ist ein Paketschließfach von {brand}",
@ -352,4 +290,4 @@
"allowMove": {
"enableImproveAccuracy": true
}
}
}

View file

@ -193,6 +193,26 @@
}
]
},
{
"id": "post_offic_brand",
"condition": "amenity=post_office",
"question": {
"en": "To which brand does this post office belong?"
},
"render": {
"en": "This is a {brand} post office"
},
"freeform": {
"type": "nsi",
"key": "brand",
"placeholder": {
"en": "Brand of the post office"
},
"helperArgs": [
"amenity=post_office"
]
}
},
{
"id": "partner-brand",
"render": {
@ -638,4 +658,4 @@
]
}
]
}
}

View file

@ -374,6 +374,7 @@
"id": "public_bookcase-operator"
},
{
"id": "public_bookcase-brand",
"question": {
"en": "Is this public bookcase part of a bigger network?",
"nl": "Is dit boekenruilkastje deel van een netwerk?",
@ -396,52 +397,33 @@
},
"condition": "ref=",
"freeform": {
"key": "brand"
"key": "brand",
"placeholder": {
"en": "Name of the network"
},
"addExtraTags": [
"nobrand="
]
},
"mappings": [
{
"then": {
"en": "Part of the network 'Little Free Library'",
"nl": "Deel van het netwerk 'Little Free Library'",
"de": "Der Bücherschrank gehört zum Netzwerk 'Little Free Library'",
"fr": "Fait partie du réseau Little Free Library",
"it": "Fa parte della rete 'Little Free Library'",
"hu": "A „Little Free Library” hálózat része",
"es": "Parte de la red 'Little Free Library'",
"pl": "Część sieci \"Little Free Library\"",
"ca": "Part de la xarxa 'Little Free Library'",
"cs": "Součást sítě 'Little Free Library'"
},
"if": {
"and": [
"brand=Little Free Library",
"nobrand="
]
},
"addExtraTags": [
"brand:wikidata=Q6650101"
]
},
{
"if": {
"and": [
"nobrand=yes",
"brand="
]
},
"if": "nobrand=yes",
"then": {
"en": "This public bookcase is not part of a bigger network",
"nl": "Dit boekenruilkastje maakt geen deel uit van een netwerk",
"de": "Der Bücherschrank gehört zu keinem Netzwerk",
"fr": "Cette microbibliothèque ne fait pas partie d'un réseau/groupe",
"it": "Questa biblioteca pubblica non fa parte di una rete",
"it": "Questa microbiblioteca non fa parte di una rete",
"hu": "Ez a nyilvános könyvespolc nem része egy nagyobb hálózatnak",
"ca": "Aquesta prestatgeria pública no és part d'una xarxa més gran",
"cs": "Tato veřejná knihobudka není součástí větší sítě"
}
},
"addExtraTags": [
"brand:wikidata=",
"brand="
]
}
],
"id": "public_bookcase-brand"
]
},
{
"render": {

View file

@ -282,6 +282,26 @@
"invalidValues": "shop=yes"
}
},
{
"id": "brand",
"question": {
"en": "What is the brand of this shop?"
},
"render": {
"en": "Part of <b>{brand}</b>"
},
"freeform": {
"key":"brand"
},
"mappings": [
{
"if": "not:brand=yes",
"then": {
"en": "This shop does not have a specific brand, it is not part of a bigger chain"
}
}
]
},
{
"id": "second_hand",
"question": {