mapcomplete/assets/themes/uk_addresses/uk_addresses.json

278 lines
7.8 KiB
JSON
Raw Normal View History

{
"id": "uk_addresses",
"title": {
"en": "UK Addresses"
},
"shortDescription": {
"en": "Help to build an open dataset of UK addresses"
},
"description": {
2021-10-18 22:42:41 +02:00
"en": "Contribute to OpenStreetMap by filling out address information",
"nl": "Draag bij aan OpenStreetMap door adresinformatie in te vullen"
},
"language": [
2021-10-18 22:42:41 +02:00
"en",
"nl"
],
"maintainer": "Pieter Vander Vennet, Rob Nickerson, Russ Garrett",
"icon": "./assets/themes/uk_addresses/housenumber_unknown.svg",
"version": "2021-09-17",
"startLat": -0.08706,
"startLon": 51.52224,
"startZoom": 17,
"widenFactor": 1.01,
"socialImage": "",
2021-10-06 12:42:18 +02:00
"hideFromOverview": true,
"clustering": {
"minNeededFeatures": 25,
"maxZoom": 16
},
"tileLayerSources": [
{
"id": "property-boundaries",
"source": "https://tiles.osmuk.org/PropertyBoundaries/{z}/{x}/{y}.png",
"isOverlay": true,
"minZoom": 18,
"maxZoom": 20,
"defaultState": false,
"name": {
"en": "Property boundaries by osmuk.org"
}
}
],
"layers": [
{
"id": "to_import",
"source": {
"#geoJson": "https://raw.githubusercontent.com/pietervdvn/MapComplete/develop/assets/themes/uk_addresses/islington_small_piece.geojson",
"geoJson": "https://osm-uk-addresses.russss.dev/addresses/{z}/{x}/{y}.json",
"osmTags": "inspireid~*",
"geoJsonZoomLevel": 16,
"isOsmCache": false
},
"name": "Addresses to check",
"minzoom": 14,
"wayHandling": 1,
"icon": {
"render": "./assets/themes/uk_addresses/housenumber_unknown.svg",
"mappings": [
{
"if": "_embedding_object:id~*",
"then": "./assets/themes/uk_addresses/housenumber_unknown_small.svg"
},
{
"if": "_imported=yes",
"then": "./assets/themes/uk_addresses/housenumber_unknown_small.svg"
}
]
},
"iconSize": {
"render": "40,40,center"
},
"title": {
"render": "Address to be determined"
},
"tagRenderings": [
{
2021-09-26 23:35:26 +02:00
"id": "uk_addresses_explanation",
"render": "There probably is an address here"
},
{
2021-09-26 23:35:26 +02:00
"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>",
"condition": "_embedding_object:id~*"
},
{
2021-09-26 23:35:26 +02:00
"id": "uk_addresses_import_button",
"render": "{import_button(ref:inspireid=$inspireid, Add this address, ./assets/themes/uk_addresses/housenumber_add.svg)}"
}
],
"calculatedTags": [
"_embedding_object=feat.overlapWith('addresses')[0]?.feat?.properties ?? null",
"_embedding_object:addr:housenumber=JSON.parse(feat.properties._embedding_object)?.['addr:housenumber']",
"_embedding_object:addr:street=JSON.parse(feat.properties._embedding_object)?.['addr:street']",
"_embedding_object:id=JSON.parse(feat.properties._embedding_object)?.id"
],
"filter": [
{
"id": "to_handle",
"options": [
{
"question": "Only show non-matched objects",
"osmTags": {
"and": [
"_imported=",
"_embedding_object:id="
]
}
}
]
}
]
},
{
"id": "addresses",
"name": {
"en": "Known addresses in OSM"
},
"minzoom": 18,
"source": {
"osmTags": {
"or": [
"addr:housenumber~*",
"addr:street~*",
"ref:inspireid~*"
]
}
},
"calculatedTags": [
"_closest_3_street_names=feat.closestn('named_streets',3, 'name').map(f => f.feat.properties.name)",
"_closest_street:0:name=JSON.parse(feat.properties._closest_3_street_names)[0]",
"_closest_street:1:name=JSON.parse(feat.properties._closest_3_street_names)[1]",
"_closest_street:2:name=JSON.parse(feat.properties._closest_3_street_names)[2]"
],
"title": {
"render": {
"en": "Known address"
}
},
"description": {
2021-10-18 22:42:41 +02:00
"en": "Addresses",
"nl": "Adressen"
},
"tagRenderings": [
{
2021-09-26 23:35:26 +02:00
"id": "uk_addresses_explanation_osm",
"render": {
"en": "This address is saved in OpenStreetMap"
}
},
{
2021-09-26 23:35:26 +02:00
"id": "uk_addresses_housenumber",
"render": {
2021-10-18 22:42:41 +02:00
"en": "The housenumber is <b>{addr:housenumber}</b>",
"nl": "Het huisnummer is <b>{addr:housenumber}</b>"
},
"question": {
"en": "What is the number of this house?"
},
"freeform": {
"key": "addr:housenumber",
2021-10-11 22:32:25 +02:00
"addExtraTags": [
"nohousenumber="
]
},
"mappings": [
{
"if": {
"and": [
"nohousenumber=yes"
]
},
"then": {
2021-10-18 22:42:41 +02:00
"en": "This building has no house number",
"nl": "Dit gebouw heeft geen huisnummer"
}
}
]
},
{
2021-09-26 23:35:26 +02:00
"id": "uk_addresses_street",
"render": {
"en": "This address is in street <b>{addr:street}</b>"
},
"question": {
"en": "What street is this address located in?"
},
"freeform": {
"key": "addr:street"
},
"mappings": [
{
"if": "addr:street:={_closest_street:0:name}",
"then": "Located in <b>{_closest_street:0:name}</b>",
"hideInAnswer": "_closest_street:0:name="
},
{
"if": "addr:street:={_closest_street:1:name}",
"then": "Located in <b>{_closest_street:1:name}</b>",
"hideInAnswer": "_closest_street:1:name="
},
{
"if": "addr:street:={_closest_street:2:name}",
"then": "Located in <b>{_closest_street:2:name}</b>",
"hideInAnswer": "_closest_street:2:name="
}
],
"condition": {
"and": [
"nohousenumber!~yes"
]
}
}
],
"icon": {
"render": "./assets/themes/uk_addresses/housenumber_ok.svg",
"mappings": [
{
"if": {
"or": [
{
"and": [
"addr:housenumber=",
"nohousenumber!=yes"
]
},
"addr:street="
]
},
"then": "./assets/themes/uk_addresses/housenumber_unknown.svg"
}
]
},
"width": {
"render": "8"
},
"iconSize": {
"render": "40,40,center"
},
"color": {
"render": "#00f",
"mappings": [
{
"if": {
"or": [
{
"and": [
"addr:housenumber=",
"nohousenumber!=yes"
]
},
"addr:street="
]
},
"then": "#ff0"
}
]
2021-09-22 20:44:53 +02:00
}
},
{
"id": "named_streets",
"minzoom": 18,
"source": {
"osmTags": {
"and": [
"highway~*",
"name~*"
]
}
},
"color": {
"render": "#ccc"
},
"width": {
"render": "0"
}
}
]
2021-10-07 15:42:08 +02:00
}