forked from MapComplete/MapComplete
Re-add housename and fixme on UK_addresses
This commit is contained in:
parent
57707181f5
commit
0d4c3ed6d9
1 changed files with 60 additions and 7 deletions
|
@ -100,13 +100,16 @@
|
||||||
{
|
{
|
||||||
"id": "uk_addresses_embedding_outline",
|
"id": "uk_addresses_embedding_outline",
|
||||||
"render": "An outline embedding this point with an address already exists in OpenStreetMap.<br>This <a href='https://openstreetmap.org/{_embedding_object:id}' target='blank'>object</a> has address <b>{_embedding_object:addr:street} {_embedding_object:addr:housenumber}</b>",
|
"render": "An outline embedding this point with an address already exists in OpenStreetMap.<br>This <a href='https://openstreetmap.org/{_embedding_object:id}' target='blank'>object</a> has address <b>{_embedding_object:addr:street} {_embedding_object:addr:housenumber}</b>",
|
||||||
"mappings": [{
|
"mappings": [
|
||||||
"if": "_embedding_object:id=true",
|
{
|
||||||
"then": "The INSPIRE-polygon containing this point has at least one address contained"
|
"if": "_embedding_object:id=true",
|
||||||
},{
|
"then": "The INSPIRE-polygon containing this point has at least one address contained"
|
||||||
"if": "_embedding_object:id=false",
|
},
|
||||||
"then": "The INSPIRE-polygon containing this point has <b>no</b> addresses contained"
|
{
|
||||||
}],
|
"if": "_embedding_object:id=false",
|
||||||
|
"then": "The INSPIRE-polygon containing this point has <b>no</b> addresses contained"
|
||||||
|
}
|
||||||
|
],
|
||||||
"condition": "_embedding_object:id~*"
|
"condition": "_embedding_object:id~*"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
@ -244,6 +247,33 @@
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
"id": "uk_addresses_housename",
|
||||||
|
"question": "What is the name of this house?<br/>This is normally indicated on a plaque.<br><div class='subtle'>Do NOT add names of inhabitants!</div>",
|
||||||
|
"render": "This house is named <b>{addr:housename}</b>",
|
||||||
|
"freeform": {
|
||||||
|
"key": "addr:housename",
|
||||||
|
"addExtraTags": [
|
||||||
|
"nohousename="
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"mappings": [
|
||||||
|
{
|
||||||
|
"if": "nohousename=yes",
|
||||||
|
"then": "This building has no housename"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"if": {
|
||||||
|
"and": [
|
||||||
|
"addr:housename=",
|
||||||
|
"nohousenumber!=yes"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"then": "This building has no housename",
|
||||||
|
"hideInAnswer": true
|
||||||
|
}
|
||||||
|
]
|
||||||
|
},
|
||||||
{
|
{
|
||||||
"id": "uk_addresses_street",
|
"id": "uk_addresses_street",
|
||||||
"render": {
|
"render": {
|
||||||
|
@ -279,6 +309,29 @@
|
||||||
"nohousenumber!~yes"
|
"nohousenumber!~yes"
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": "fixme",
|
||||||
|
"render": "<b>Fixme description</b>{render}",
|
||||||
|
"question": {
|
||||||
|
"en": "What should be fixed here? Please explain"
|
||||||
|
},
|
||||||
|
"freeform": {
|
||||||
|
"key": "fixme"
|
||||||
|
},
|
||||||
|
"mappings": [
|
||||||
|
{
|
||||||
|
"if": "fixme=",
|
||||||
|
"then": "No fixme - write something here to explain complicated cases"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"questions",
|
||||||
|
{
|
||||||
|
"id": "address-sign-image",
|
||||||
|
"render": {
|
||||||
|
"en": "{image_carousel(image:address)}<br/>{image_upload(image:address, Add image of the address)}"
|
||||||
|
}
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"mapRendering": [
|
"mapRendering": [
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue