2021-09-18 02:45:44 +02:00
{
"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"
2021-09-18 02:45:44 +02:00
} ,
"language" : [
2021-10-18 22:42:41 +02:00
"en" ,
"nl"
2021-09-18 02:45:44 +02:00
] ,
"maintainer" : "Pieter Vander Vennet, Rob Nickerson, Russ Garrett" ,
"icon" : "./assets/themes/uk_addresses/housenumber_unknown.svg" ,
"version" : "2021-09-17" ,
2021-09-27 18:35:32 +02:00
"startLat" : -0.08706 ,
"startLon" : 51.52224 ,
"startZoom" : 17 ,
"widenFactor" : 1.01 ,
2021-09-18 02:45:44 +02:00
"socialImage" : "" ,
2021-10-06 12:42:18 +02:00
"hideFromOverview" : true ,
2021-09-27 18:35:32 +02:00
"clustering" : {
"minNeededFeatures" : 25 ,
2021-10-13 03:10:46 +02:00
"maxZoom" : 16
2021-09-27 18:35:32 +02:00
} ,
2021-10-14 21:43:14 +02:00
"tileLayerSources" : [
{
2021-10-15 00:52:31 +02:00
"id" : "property-boundaries" ,
2021-10-14 21:43:14 +02:00
"source" : "https://tiles.osmuk.org/PropertyBoundaries/{z}/{x}/{y}.png" ,
"isOverlay" : true ,
"minZoom" : 18 ,
"maxZoom" : 20 ,
"defaultState" : false ,
"name" : {
2021-10-15 00:52:31 +02:00
"en" : "Property boundaries by osmuk.org"
2021-10-14 21:43:14 +02:00
}
}
] ,
2021-09-18 02:45:44 +02:00
"layers" : [
{
"id" : "to_import" ,
"source" : {
2021-10-08 15:11:20 +02:00
"#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" ,
2021-09-18 02:45:44 +02:00
"osmTags" : "inspireid~*" ,
2021-10-08 15:11:20 +02:00
"geoJsonZoomLevel" : 16 ,
2021-09-18 02:45:44 +02:00
"isOsmCache" : false
} ,
"name" : "Addresses to check" ,
2021-10-08 15:11:20 +02:00
"minzoom" : 14 ,
2021-09-18 02:45:44 +02:00
"wayHandling" : 1 ,
"icon" : {
2021-09-27 18:35:32 +02:00
"render" : "./assets/themes/uk_addresses/housenumber_unknown.svg" ,
2021-09-18 02:45:44 +02:00
"mappings" : [
{
"if" : "_embedding_object:id~*" ,
2021-09-27 18:35:32 +02:00
"then" : "./assets/themes/uk_addresses/housenumber_unknown_small.svg"
2021-09-18 02:45:44 +02:00
} ,
{
"if" : "_imported=yes" ,
2021-09-27 18:35:32 +02:00
"then" : "./assets/themes/uk_addresses/housenumber_unknown_small.svg"
2021-09-18 02:45:44 +02:00
}
]
} ,
2021-09-27 18:35:32 +02:00
"iconSize" : {
"render" : "40,40,center"
} ,
2021-09-18 02:45:44 +02:00
"title" : {
"render" : "Address to be determined"
} ,
"tagRenderings" : [
{
2021-09-26 23:35:26 +02:00
"id" : "uk_addresses_explanation" ,
2021-09-18 02:45:44 +02:00
"render" : "There probably is an address here"
} ,
{
2021-09-26 23:35:26 +02:00
"id" : "uk_addresses_embedding_outline" ,
2021-09-18 02:45:44 +02:00
"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" ,
2021-09-18 02:45:44 +02:00
"render" : "{import_button(ref:inspireid=$inspireid, Add this address, ./assets/themes/uk_addresses/housenumber_add.svg)}"
2021-10-10 23:38:09 +02:00
}
2021-09-18 02:45:44 +02:00
] ,
"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"
2021-09-27 18:35:32 +02:00
] ,
"filter" : [
{
"id" : "to_handle" ,
"options" : [
{
"question" : "Only show non-matched objects" ,
"osmTags" : {
"and" : [
"_imported=" ,
"_embedding_object:id="
]
}
}
]
}
2021-09-18 02:45:44 +02:00
]
} ,
{
"id" : "addresses" ,
"name" : {
"en" : "Known addresses in OSM"
} ,
"minzoom" : 18 ,
"source" : {
"osmTags" : {
"or" : [
"addr:housenumber~*" ,
"addr:street~*" ,
"ref:inspireid~*"
]
}
} ,
"calculatedTags" : [
2021-10-10 23:38:09 +02:00
"_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]"
2021-09-18 02:45:44 +02:00
] ,
"title" : {
"render" : {
"en" : "Known address"
}
} ,
"description" : {
2021-10-18 22:42:41 +02:00
"en" : "Addresses" ,
"nl" : "Adressen"
2021-09-18 02:45:44 +02:00
} ,
"tagRenderings" : [
{
2021-09-26 23:35:26 +02:00
"id" : "uk_addresses_explanation_osm" ,
2021-09-18 02:45:44 +02:00
"render" : {
"en" : "This address is saved in OpenStreetMap"
}
} ,
{
2021-09-26 23:35:26 +02:00
"id" : "uk_addresses_housenumber" ,
2021-09-18 02:45:44 +02:00
"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>"
2021-09-18 02:45:44 +02:00
} ,
"question" : {
"en" : "What is the number of this house?"
} ,
"freeform" : {
2021-10-10 23:38:09 +02:00
"key" : "addr:housenumber" ,
2021-10-11 22:32:25 +02:00
"addExtraTags" : [
"nohousenumber="
]
2021-09-18 02:45:44 +02:00
} ,
"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-18 02:45:44 +02:00
}
}
]
} ,
{
2021-09-26 23:35:26 +02:00
"id" : "uk_addresses_street" ,
2021-09-18 02:45:44 +02:00
"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}" ,
2021-10-10 23:38:09 +02:00
"then" : "Located in <b>{_closest_street:0:name}</b>" ,
2021-09-18 02:45:44 +02:00
"hideInAnswer" : "_closest_street:0:name="
} ,
{
"if" : "addr:street:={_closest_street:1:name}" ,
2021-10-10 23:38:09 +02:00
"then" : "Located in <b>{_closest_street:1:name}</b>" ,
2021-09-18 02:45:44 +02:00
"hideInAnswer" : "_closest_street:1:name="
} ,
{
"if" : "addr:street:={_closest_street:2:name}" ,
2021-10-10 23:38:09 +02:00
"then" : "Located in <b>{_closest_street:2:name}</b>" ,
2021-09-18 02:45:44 +02:00
"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
}
2021-09-18 02:45:44 +02:00
} ,
{
"id" : "named_streets" ,
"minzoom" : 18 ,
"source" : {
"osmTags" : {
"and" : [
"highway~*" ,
"name~*"
]
}
} ,
"color" : {
"render" : "#ccc"
} ,
"width" : {
2021-10-10 23:38:09 +02:00
"render" : "0"
2021-09-18 02:45:44 +02:00
}
}
2021-10-19 02:03:52 +02:00
]
2021-10-07 15:42:08 +02:00
}