mapcomplete/assets/themes/uk_addresses/uk_addresses.json

292 lines
8.5 KiB
JSON
Raw Normal View History

{
"id": "uk_addresses",
"title": {
2021-10-22 13:47:36 +02:00
"en": "UK Addresses",
"de": "Adressen in Großbritannien"
},
"shortDescription": {
2021-10-22 13:47:36 +02:00
"en": "Help to build an open dataset of UK addresses",
"de": "Helfen Sie beim Aufbau eines offenen Datensatzes britischer Adressen"
},
"description": {
2021-10-18 22:42:41 +02:00
"en": "Contribute to OpenStreetMap by filling out address information",
2021-10-22 13:47:36 +02:00
"nl": "Draag bij aan OpenStreetMap door adresinformatie in te vullen",
"de": "Tragen Sie zu OpenStreetMap bei, indem Sie Adressinformationen ausfüllen"
},
"language": [
2021-10-18 22:42:41 +02:00
"en",
2021-10-22 13:47:36 +02:00
"de",
2021-10-18 22:42:41 +02:00
"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": {
2021-10-25 21:48:45 +02:00
"en": "Property boundaries by osmuk.org",
"de": "Grenzverläufe gemäß 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": {
2021-10-22 13:47:36 +02:00
"en": "Known addresses in OSM",
"de": "Bekannte Adressen 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": {
2021-10-22 13:47:36 +02:00
"en": "Known address",
"de": "Bekannte Adresse"
}
},
"description": {
2021-10-18 22:42:41 +02:00
"en": "Addresses",
2021-10-22 13:47:36 +02:00
"nl": "Adressen",
"de": "Adressen"
},
"tagRenderings": [
{
2021-09-26 23:35:26 +02:00
"id": "uk_addresses_explanation_osm",
"render": {
2021-10-22 13:47:36 +02:00
"en": "This address is saved in OpenStreetMap",
"de": "Diese Adresse ist in OpenStreetMap gespeichert"
}
},
{
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>",
2021-10-22 13:47:36 +02:00
"nl": "Het huisnummer is <b>{addr:housenumber}</b>",
"de": "Die Hausnummer ist <b>{addr:housenumber}</b>"
},
"question": {
2021-10-22 13:47:36 +02:00
"en": "What is the number of this house?",
"de": "Wie lautet die Nummer dieses Hauses?"
},
"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",
2021-10-22 13:47:36 +02:00
"nl": "Dit gebouw heeft geen huisnummer",
"de": "Dieses Gebäude hat keine Hausnummer"
}
}
]
},
{
2021-09-26 23:35:26 +02:00
"id": "uk_addresses_street",
"render": {
2021-10-22 13:47:36 +02:00
"en": "This address is in street <b>{addr:street}</b>",
"de": "Diese Adresse befindet sich in der Straße <b>{addr:street}</b>"
},
"question": {
2021-10-22 13:47:36 +02:00
"en": "What street is this address located in?",
"de": "In welcher Straße befindet sich diese Adresse?"
},
"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
}