{
"id": "uk_addresses",
"title": {
"en": "Addresses in Great Britain",
"de": "Adressen in Großbritannien",
"it": "Indirizzi UK",
"id": "Alamat Inggris"
},
"mustHaveLanguage": [
"en"
],
"description": {
"en": "Help us collect addresses and make them freely available. Each address contributed will be added to OpenStreetMap so you will need to create an account and log in before you start. Please do not copy addresses from the internet or other sources subject to copyright. This website works well on mobile so a good option is to contibute the addresses closest to you."
},
"shortDescription": {
"en": "Help to build an open dataset of addresses in Great Britain",
"de": "Helfen Sie beim Aufbau eines offenen Datensatzes britischer Adressen",
"it": "Aiuta a costruire un dataset libero per gli indirizzi nel Regno Unito"
},
"icon": "./assets/themes/uk_addresses/housenumber_unknown.svg",
"startZoom": 7,
"startLat": 53.21261,
"startLon": -1.47216,
"credits": [
"Pieter Vander Vennet, Rob Nickerson, Russ Garrett"
],
"hideFromOverview": true,
"layers": [
{
"id": "raw_inspire_polygons",
"description": "External dataset: inspire polygon",
"source": {
"geoJson": "https://osm-uk-addresses.russss.dev/inspire/{z}/{x}/{y}.json",
"osmTags": "inspireid~*",
"geoJsonZoomLevel": 18
},
"minzoom": 18,
"calculatedTags": [
"_has_address=overlapWith(feat)('address').length > 0"
],
"shownByDefault": false,
"name": {
"en": "Inspire polygons"
},
"pointRendering": null,
"lineRendering": [
{
"width": 2,
"color": {
"render": "#00f",
"mappings": [
{
"if": "_has_address=true",
"then": "#0f0"
}
]
}
}
]
},
{
"id": "to_import",
"source": {
"geoJson": "https://osm-uk-addresses.russss.dev/addresses/{z}/{x}/{y}.json",
"osmTags": {
"and": [
"urpn_count~*",
"id!~node/.*"
]
},
"geoJsonZoomLevel": 16
},
"name": "Addresses to check",
"minzoom": 18,
"title": {
"render": {
"en": "This address needs adding"
}
},
"tagRenderings": [
{
"id": "uk_addresses_explanation",
"render": {
"en": "We think there should be an address here. Please click below to add it."
}
},
{
"id": "uk_addresses_embedding_outline",
"render": "Warning: This point lies within a building or area for which we already have an address. You should only add this address if it is different.
The number and street name we have for the existing address is {_embedding_object:addr:housenumber} {_embedding_object:addr:street}",
"mappings": [
{
"if": "_embedding_object:id=true",
"then": {
"en": "Warning: The property boundary containing this point already contains at least one recorded address. You should only add this address if it is different."
}
},
{
"if": "_embedding_object:id=false",
"then": {
"en": "We checked our data and found no other address within the same property boundary. If you know the details for this address, please add it."
}
}
],
"condition": "_embedding_object:id~*"
},
{
"id": "uk_addresses_import_button",
"render": {
"special": {
"type": "import_button",
"targetLayer": "address",
"tags": "urpn_count=$urpn_count;ref:GB:uprn=$ref:GB:uprn$",
"text": "Add this address",
"icon": "./assets/themes/uk_addresses/housenumber_add.svg"
}
}
}
],
"calculatedTags": [
"_embedding_object=overlapWith(feat)('address')[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_inspire_polygon_has_address=overlapWith(feat)('raw_inspire_polygons')[0]?.feat?.properties?._has_address",
"_embedding_object:id=get(feat, '_embedding_object')?.id ?? feat.properties._embedding_inspire_polygon_has_address"
],
"filter": [
{
"id": "to_handle",
"options": [
{
"default": true,
"question": "Only show non-matched objects",
"osmTags": {
"and": [
"_imported=",
{
"or": [
"_embedding_object:id=",
"_embedding_object:id=false"
]
}
]
}
}
]
}
],
"description": "Alamat",
"pointRendering": [
{
"marker": [
{
"icon": {
"render": "./assets/themes/uk_addresses/housenumber_unknown.svg",
"mappings": [
{
"if": {
"and": [
"_embedding_object:id~*",
"_embedding_object:id!=false"
]
},
"then": "./assets/themes/uk_addresses/housenumber_unknown_small.svg"
},
{
"if": "_imported=yes",
"then": "./assets/themes/uk_addresses/housenumber_unknown_small.svg"
}
]
}
}
],
"iconSize": "40,40",
"location": [
"point",
"centroid"
],
"anchor": "center"
}
],
"lineRendering": [
{}
]
},
{
"id": "uk_address",
"name": {
"en": "Known addresses in OSM"
},
"minzoom": 18,
"source": {
"osmTags": {
"or": [
"addr:unit~*",
"addr:flats~*",
"addr:housename~*",
"addr:housenumber~*",
"addr:place~*",
"addr:substreet~*",
"addr:street~*",
"addr:parentstreet~*",
"addr:suburb~*",
"addr:city~*",
"addr:postcode~*",
"fixme:addr~*",
"urpn_count~*"
]
}
},
"title": {
"render": {
"en": "Review and update the address"
}
},
"description": {
"en": "Addresses",
"nl": "Adressen",
"de": "Adressen",
"ru": "Адреса",
"zh_Hant": "地址",
"hu": "Címek"
},
"calculatedTags": [
"_closest_3_street_names=closestn(feat)('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]"
],
"tagRenderings": [
"questions",
{
"id": "preview",
"render": {
"en": "