diff --git a/assets/themes/uk_addresses/Commemorative_plaque_on_Elizabeth_House_-_geograph.org.uk_-_2693028.jpg b/assets/themes/uk_addresses/Commemorative_plaque_on_Elizabeth_House_-_geograph.org.uk_-_2693028.jpg deleted file mode 100644 index a51b9a826..000000000 Binary files a/assets/themes/uk_addresses/Commemorative_plaque_on_Elizabeth_House_-_geograph.org.uk_-_2693028.jpg and /dev/null differ diff --git a/assets/themes/uk_addresses/Plaque,_Raphoe_House_-_geograph.org.uk_-_1925685.jpg b/assets/themes/uk_addresses/Plaque,_Raphoe_House_-_geograph.org.uk_-_1925685.jpg deleted file mode 100644 index c38517431..000000000 Binary files a/assets/themes/uk_addresses/Plaque,_Raphoe_House_-_geograph.org.uk_-_1925685.jpg and /dev/null differ diff --git a/assets/themes/uk_addresses/Plaque,_Séamus_Roddy_House_-_geograph.org.uk_-_2000318.jpg b/assets/themes/uk_addresses/Plaque,_Séamus_Roddy_House_-_geograph.org.uk_-_2000318.jpg deleted file mode 100644 index c4c68b90b..000000000 Binary files a/assets/themes/uk_addresses/Plaque,_Séamus_Roddy_House_-_geograph.org.uk_-_2000318.jpg and /dev/null differ diff --git a/assets/themes/uk_addresses/license_info.json b/assets/themes/uk_addresses/license_info.json index cfad1b9d7..301d866d2 100644 --- a/assets/themes/uk_addresses/license_info.json +++ b/assets/themes/uk_addresses/license_info.json @@ -1,34 +1,4 @@ [ - { - "path": "Commemorative_plaque_on_Elizabeth_House_-_geograph.org.uk_-_2693028.jpg", - "license": "CC-BY-SA 2.0 Unported", - "authors": [ - "Basher Eyre" - ], - "sources": [ - "https://commons.wikimedia.org/wiki/File:Commemorative_plaque_on_Elizabeth_House_-_geograph.org.uk_-_2693028.jpg" - ] - }, - { - "path": "Plaque,_Raphoe_House_-_geograph.org.uk_-_1925685.jpg", - "license": "CC-BY-SA 2.0", - "authors": [ - "Kenneth Allen" - ], - "sources": [ - "https://commons.wikimedia.org/wiki/File:Plaque,_Raphoe_House_-_geograph.org.uk_-_1925685.jpg" - ] - }, - { - "path": "Plaque,_Séamus_Roddy_House_-_geograph.org.uk_-_2000318.jpg", - "license": "CC-BY-SA 2.0 Unported", - "authors": [ - "Kenneth Allen" - ], - "sources": [ - "https://commons.wikimedia.org/wiki/File:Plaque,_S%C3%A9amus_Roddy_House_-_geograph.org.uk_-_2000318.jpg" - ] - }, { "path": "housenumber_add.svg", "license": "CC0", @@ -79,13 +49,11 @@ "sources": [] }, { - "path": "stamp.jpg", - "license": "CC-BY 2.0", + "path": "stamp-outline.png", + "license": "CC0", "authors": [ - "Mark Morgan" + "Rob Nickerson" ], - "sources": [ - "https://commons.wikimedia.org/wiki/File:Queen_Elizabeth_II_Virgin_Islands_stamp.jpg" - ] + "sources": [] } -] \ No newline at end of file +] diff --git a/assets/themes/uk_addresses/stamp-outline.png b/assets/themes/uk_addresses/stamp-outline.png new file mode 100644 index 000000000..e1bc7f2de Binary files /dev/null and b/assets/themes/uk_addresses/stamp-outline.png differ diff --git a/assets/themes/uk_addresses/stamp.jpg b/assets/themes/uk_addresses/stamp.jpg deleted file mode 100644 index e54290b27..000000000 Binary files a/assets/themes/uk_addresses/stamp.jpg and /dev/null differ diff --git a/assets/themes/uk_addresses/uk_addresses.json b/assets/themes/uk_addresses/uk_addresses.json index 3bc4b2fea..71fd4fd9d 100644 --- a/assets/themes/uk_addresses/uk_addresses.json +++ b/assets/themes/uk_addresses/uk_addresses.json @@ -1,7 +1,7 @@ { "id": "uk_addresses", "title": { - "en": "UK Addresses", + "en": "Addresses in Great Britain", "de": "Adressen in Großbritannien", "it": "Indirizzi UK", "id": "Alamat Inggris" @@ -10,16 +10,12 @@ "en" ], "shortDescription": { - "en": "Help to build an open dataset of UK addresses", + "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" }, "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", - "it": "Contribuisci a OpenStreetMap inserendo le informazioni sull’indirizzo", - "id": "Berkontribusi untuk OpenStreetMap dengan mengisi informasi alamat" + "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." }, "maintainer": "Pieter Vander Vennet, Rob Nickerson, Russ Garrett", "icon": "./assets/themes/uk_addresses/housenumber_unknown.svg", @@ -86,7 +82,7 @@ "geoJson": "https://osm-uk-addresses.russss.dev/addresses/{z}/{x}/{y}.json", "osmTags": { "and": [ - "ref:GB:inspire~*", + "urpn_count~*", "id!~node/.*" ] }, @@ -97,31 +93,30 @@ "minzoom": 14, "title": { "render": { - "en": "Address to be determined", - "id": "Alamat yang diketahui" + "en": "This address needs adding" } }, "tagRenderings": [ { "id": "uk_addresses_explanation", "render": { - "en": "There probably is an address here" + "en": "We think there should be an address here. Please click below to add it." } }, { "id": "uk_addresses_embedding_outline", - "render": "An outline embedding this point with an address already exists in OpenStreetMap.
This object has address {_embedding_object:addr:street} {_embedding_object:addr:housenumber}", + "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": "The INSPIRE-polygon containing this point has at least one address contained" + "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": "The INSPIRE-polygon containing this point has no addresses contained" + "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." } } ], @@ -129,7 +124,7 @@ }, { "id": "uk_addresses_import_button", - "render": "{import_button(address,ref:GB:inspire=$ref:GB:inspire;ref:GB:uprn=$ref:GB:uprn$, Add this address, ./assets/themes/uk_addresses/housenumber_add.svg)}" + "render": "{import_button(address,urpn_count=$urpn_count;ref:GB:uprn=$ref:GB:uprn$, Add this address, ./assets/themes/uk_addresses/housenumber_add.svg)}" } ], "calculatedTags": [ @@ -194,28 +189,31 @@ { "id": "address", "name": { - "en": "Known addresses in OSM", - "de": "Bekannte Adressen in OSM", - "zh_Hant": "OSM 上已知的地址", - "hu": "Ismert címek az OSM-en", - "nl": "Bekende adressen in OSM" + "en": "Known addresses in OSM" }, "minzoom": 18, "source": { "osmTags": { "or": [ + "addr:unit~*", + "addr:flats~*", + "addr:housename~*", "addr:housenumber~*", + "addr:place~*", + "addr:substreet~*", "addr:street~*", - "ref:GB:inspire~*" + "addr:parentstreet~*", + "addr:suburb~*", + "addr:city~*", + "addr:postcode~*", + "fixme:addr~*", + "urpn_count~*" ] } }, "title": { "render": { - "en": "Known address", - "de": "Bekannte Adresse", - "hu": "Ismert cím", - "nl": "Bekend adres" + "en": "Review and update the address" } }, "description": { @@ -233,23 +231,95 @@ "_closest_street:2:name=JSON.parse(feat.properties._closest_3_street_names)[2]" ], "tagRenderings": [ + "questions", { - "id": "uk_addresses_explanation_osm", + "id": "preview", "render": { - "en": "This address is saved in OpenStreetMap", - "de": "Diese Adresse ist in OpenStreetMap gespeichert" + "en": "
The envelope below shows the address that we have recorded. You can change this by answering any remaining questions above, or by clicking the pencil icons below. We do not need you to provide a recipient's name or any of the parts shown in [blue].
{addr:unit} {addr:housename}
{addr:housenumber} {addr:street}
{addr:parentstreet}
[Suburb]
[Town]
[Postal code]
" + }, + "mappings": [ + { + "if": "addr:substreet~*", + "then": "
The envelope below shows the address that we have recorded. You can change this by answering any remaining questions above, or by clicking the pencil icons below. We do not need you to provide a recipient's name or any of the parts shown in [blue].
{addr:unit} {addr:housename}
{addr:housenumber} {addr:substreet}
{addr:street}
{addr:parentstreet}
[Suburb]
[Town]
[Postal code]
" + } + ] + }, + { + "id": "uk_addresses_unit", + "render": "{addr:unit}", + "question": { + "en": "What is the sub-unit for this address?
Some named building or large complexes are split into sub-units (e.g. \"1\", \"Flat 2\", \"Unit C\")
" + }, + "freeform": { + "key": "addr:unit" + }, + "mappings": [ + { + "if": "addr:unit=", + "then": "
Sub-unit (e.g. \"1\", \"Flat 2\", \"Unit C\")
", + "hideInAnswer": true + }, + { + "if": "addr:unit=", + "then": "There is no sub-unit within this address" + } + ], + "condition": { + "or": [ + "addr:housenumber~*", + "addr:housename~*", + "addr:substreet~*" + ] } }, { - "id": "uk_addresses_housenumber", - "render": { - "en": "The housenumber is {addr:housenumber}", - "nl": "Het huisnummer is {addr:housenumber}", - "de": "Die Hausnummer ist {addr:housenumber}" + "id": "uk_addresses_housename", + "question": "What is the house or building name for this address?
As shown on a sign (e.g. \"Rose Cottage\", \"Broadcasting House\", \"Acme Corp HQ\"). Please do NOT add names of the people who live here!
", + "render": "{addr:housename}", + "freeform": { + "key": "addr:housename", + "addExtraTags": [ + "nohousename=" + ] }, + "mappings": [ + { + "if": { + "and": [ + "nohousename=yes", + "addr:housename=" + ] + }, + "then": "
House or building name
", + "hideInAnswer": true + }, + { + "if": { + "and": [ + "nohousename=yes", + "addr:housename=" + ] + }, + "then": "This building has no housename" + }, + { + "#": "By adding nohousenumber!=yes, this option will trigger when first added, but will be untriggered if a housenumber is added, resulting in the question poping up!", + "if": { + "and": [ + "addr:housename=", + "nohousenumber!=yes" + ] + }, + "then": "
House or building name
", + "hideInAnswer": true + } + ] + }, + { + "id": "uk_addresses_housenumber", + "render": "{addr:housenumber}", "question": { - "en": "What is the number of this house?", - "de": "Wie lautet die Nummer dieses Hauses?" + "en": "What is the house or building number for this address?" }, "freeform": { "key": "addr:housenumber", @@ -261,7 +331,20 @@ { "if": { "and": [ - "nohousenumber=yes" + "nohousenumber=yes", + "addr:housenumber=" + ] + }, + "then": { + "en": "
Number (e.g. 1, 1A, 2)
" + }, + "hideInAnswer": true + }, + { + "if": { + "and": [ + "nohousenumber=yes", + "addr:housenumber=" ] }, "then": { @@ -273,64 +356,89 @@ ] }, { - "id": "uk_addresses_housename", - "question": "What is the name of this house?
This is normally indicated on a plaque.
Do NOT add names of inhabitants!
", - "render": "This house is named {addr:housename}", + "id": "uk_addresses_placename", + "question": { + "en": "What is the place or locality for this address?
This is additional information that appears before (or instead of) a street name in the address (e.g. \"The Cross\", \"West Business Park\", \"Castle Mews\")
" + }, + "render": { + "en": "{addr:substreet}" + }, "freeform": { - "key": "addr:housename", - "addExtraTags": [ - "nohousename=" - ] + "key": "addr:substreet", + "addExtraTags": [ + "addr:parentstreet:={addr:street}", + "addr:street=" + ] }, "mappings": [ { - "if": "nohousename=yes", - "then": "This building has no housename" + "if": "addr:substreet=", + "then": { + "en": "
Place (e.g. \"Castle Mews\", \"West Business Park\")
" + }, + "hideInAnswer": true }, { - "#": "By adding nohousenumber!=yes, this option will trigger when first added, but will be untriggered if a housenumber is added, resulting in the question poping up!", - "if": { - "and": [ - "addr:housename=", - "nohousenumber!=yes" - ] - }, - "then": "This building has no housename", - "hideInAnswer": true + "if": "addr:substreet=", + "then": { + "en": "No extra place name is given or needed" + } } - ] + ], + "condition": "addr:parentstreet=" }, { - "id": "uk_addresses_unit", - "render": "The sub-part of this address is {addr:unit}", + "id": "uk_addresses_placename_with_parent", "question": { - "en": "What is the unit indication of this address?
This is the letter or number of the letterbox here, if multiple letterboxes share the same street and housenumber. If there are multiple at the same location, add them here with a ; between them
" + "en": "What is the place or locality for this address?
This is additional information that appears before (or instead of) a street name in the address (e.g. \"The Cross\", \"West Business Park\", \"Castle Mews\")
" + }, + "render": { + "en": "{addr:substreet}" }, "freeform": { - "key": "addr:unit" + "key": "addr:substreet", + "addExtraTags": [ + "addr:street=" + ] }, "mappings": [ { - "if": "addr:unit=", - "then": "This address has no subparts.
Subparts are e.g. appartment numbers, extra letters or numbers if there are multiple letterboxes, ...
" + "if": "addr:substreet=", + "then": { + "en": "
Place (e.g. \"Castle Mews\", \"West Business Park\")
" + }, + "hideInAnswer": true + }, + { + "if": "addr:substreet=", + "then": { + "en": "No extra place name is given or needed" + } } ], "condition": { "or": [ - "addr:housenumber~*", - "addr:housename~*" + { + "and": [ + "addr:parentstreet~*", + "addr:street=" + ] + }, + { + "and": [ + "addr:parentstreet~*", + "addr:street~*", + "addr:substreet~*" + ] + } ] } }, { "id": "uk_addresses_street", - "render": { - "en": "This address is in street {addr:street}", - "de": "Diese Adresse befindet sich in der Straße {addr:street}" - }, + "render": "{addr:street}", "question": { - "en": "What street is this address located in?", - "de": "In welcher Straße befindet sich diese Adresse?" + "en": "What is the street name for this address?" }, "freeform": { "key": "addr:street" @@ -338,75 +446,93 @@ "mappings": [ { "if": "addr:street:={_closest_street:0:name}", - "then": "This address is in street {_closest_street:0:name}", + "then": "{_closest_street:0:name}", "hideInAnswer": "_closest_street:0:name=" }, { "if": "addr:street:={_closest_street:1:name}", - "then": "This address is in street {_closest_street:1:name}", + "then": "{_closest_street:1:name}", "hideInAnswer": "_closest_street:1:name=" }, { "if": "addr:street:={_closest_street:2:name}", - "then": "This address is in street {_closest_street:2:name}", + "then": "{_closest_street:2:name}", "hideInAnswer": "_closest_street:2:name=" } - ] - }, - { - "id": "uk_addresses_placename", - "question": { - "en": "What is the place or locality?
This is additional information if the streetname alone isn't enough to find this address. Typical examples are 'Technology Park', 'XYZ Terrace', ...
" - }, - "render": { - "en": "The placename is {addr:place}" - }, - "freeform": { - "key": "addr:place" - }, - "mappings": [ - { - "if": "addr:place=", - "then": { - "en": "No extra placename is given or needed" - } - } - ] - }, - { - "id": "fixme", - "render": "This address is complicated - therefore someone has given a description of what should be fixed:{fixme}", - "question": { - "en": "What should be fixed here? Please explain what the address is" - }, - "freeform": { - "key": "fixme" - }, - "mappings": [ - { - "if": "fixme=", - "then": "Is this address complicated? Write something here to explain this case. An experienced mapper will have a look at it" - } - ] - }, - "questions", - { - "id": "address-sign-image", - "render": { - "en": "{image_carousel(image:address)}
{image_upload(image:address, Add image of the address)}" + ], + "condition": { + "or": [ + "addr:street~*", + "addr:substreet=" + ] } }, { - "id": "preview", - "render": { - "en": "To send a letter to this addres, you would write:
Name of the inhabitant
{addr:housename}
{addr:unit} {addr:housenumber} {addr:street}
{addr:place}
Suburb
Town
Postal code
" + "id": "uk_addresses_parentstreet", + "render": "{addr:parentstreet}", + "question": { + "en": "What is the parent street name for this address?
This street name will appear after the place name or first street name in the address
" + }, + "freeform": { + "key": "addr:parentstreet" }, "mappings": [ { - "if": "addr:place~*", - "then": "To send a letter to this address, you would write:
Name of the inhabitant
{addr:unit} {addr:housename}
{addr:housenumber} {addr:place}
{addr:street}
Suburb
Town
Postal code
" + "if": "addr:parentstreet=", + "then": { + "en": "
Parent street name
" + }, + "hideInAnswer": true + }, + { + "if": "addr:parentstreet=", + "then": "No parent street name is needed within this address" + }, + { + "if": "addr:parentstreet:={_closest_street:0:name}", + "then": "{_closest_street:0:name}", + "hideInAnswer": "_closest_street:0:name=" + }, + { + "if": "addr:parentstreet:={_closest_street:1:name}", + "then": "{_closest_street:1:name}", + "hideInAnswer": "_closest_street:1:name=" + }, + { + "if": "addr:parentstreet:={_closest_street:2:name}", + "then": "{_closest_street:2:name}", + "hideInAnswer": "_closest_street:2:name=" + } + ], + "condition": { + "or": [ + "addr:parentstreet~*", + "addr:substreet~*" + ] + } + }, + { + "id": "fixme", + "render": "This address is complicated. We have recorded the following description: {fixme:addr}", + "question": { + "en": "Please explain what the address is so that someone else can look at it" + }, + "freeform": { + "key": "fixme:addr" + }, + "mappings": [ + { + "if": "fixme:addr=", + "then": "Complicated address? Please click the pencil and write some text to describe the situation. You can also add a photo below if that helps", + "hideInAnswer": true } ] + }, + { + "id": "address-sign-image", + "render": { + "en": "{image_carousel(image:address)}
{image_upload(image:address, Too complex? Add a photo of the address)}" + } } ], "mapRendering": [ @@ -470,4 +596,4 @@ ], "enableShareScreen": false, "enableMoreQuests": false -} \ No newline at end of file +}