292 lines
No EOL
8.5 KiB
JSON
292 lines
No EOL
8.5 KiB
JSON
{
|
|
"id": "uk_addresses",
|
|
"title": {
|
|
"en": "UK Addresses",
|
|
"de": "Adressen in Großbritannien"
|
|
},
|
|
"shortDescription": {
|
|
"en": "Help to build an open dataset of UK addresses",
|
|
"de": "Helfen Sie beim Aufbau eines offenen Datensatzes britischer Adressen"
|
|
},
|
|
"description": {
|
|
"en": "Contribute to OpenStreetMap by filling out address information",
|
|
"nl": "Draag bij aan OpenStreetMap door adresinformatie in te vullen",
|
|
"de": "Tragen Sie zu OpenStreetMap bei, indem Sie Adressinformationen ausfüllen"
|
|
},
|
|
"language": [
|
|
"en",
|
|
"de",
|
|
"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": "",
|
|
"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",
|
|
"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": [
|
|
{
|
|
"id": "uk_addresses_explanation",
|
|
"render": "There probably is an address here"
|
|
},
|
|
{
|
|
"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~*"
|
|
},
|
|
{
|
|
"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",
|
|
"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": {
|
|
"en": "Known address",
|
|
"de": "Bekannte Adresse"
|
|
}
|
|
},
|
|
"description": {
|
|
"en": "Addresses",
|
|
"nl": "Adressen",
|
|
"de": "Adressen"
|
|
},
|
|
"tagRenderings": [
|
|
{
|
|
"id": "uk_addresses_explanation_osm",
|
|
"render": {
|
|
"en": "This address is saved in OpenStreetMap",
|
|
"de": "Diese Adresse ist in OpenStreetMap gespeichert"
|
|
}
|
|
},
|
|
{
|
|
"id": "uk_addresses_housenumber",
|
|
"render": {
|
|
"en": "The housenumber is <b>{addr:housenumber}</b>",
|
|
"nl": "Het huisnummer is <b>{addr:housenumber}</b>",
|
|
"de": "Die Hausnummer ist <b>{addr:housenumber}</b>"
|
|
},
|
|
"question": {
|
|
"en": "What is the number of this house?",
|
|
"de": "Wie lautet die Nummer dieses Hauses?"
|
|
},
|
|
"freeform": {
|
|
"key": "addr:housenumber",
|
|
"addExtraTags": [
|
|
"nohousenumber="
|
|
]
|
|
},
|
|
"mappings": [
|
|
{
|
|
"if": {
|
|
"and": [
|
|
"nohousenumber=yes"
|
|
]
|
|
},
|
|
"then": {
|
|
"en": "This building has no house number",
|
|
"nl": "Dit gebouw heeft geen huisnummer",
|
|
"de": "Dieses Gebäude hat keine Hausnummer"
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "uk_addresses_street",
|
|
"render": {
|
|
"en": "This address is in street <b>{addr:street}</b>",
|
|
"de": "Diese Adresse befindet sich in der Straße <b>{addr:street}</b>"
|
|
},
|
|
"question": {
|
|
"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"
|
|
}
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"id": "named_streets",
|
|
"minzoom": 18,
|
|
"source": {
|
|
"osmTags": {
|
|
"and": [
|
|
"highway~*",
|
|
"name~*"
|
|
]
|
|
}
|
|
},
|
|
"color": {
|
|
"render": "#ccc"
|
|
},
|
|
"width": {
|
|
"render": "0"
|
|
}
|
|
}
|
|
]
|
|
} |