From: mtmail Date: Mon, 12 Apr 2021 14:59:53 +0000 (+0200) Subject: add help with overpass-turbo query for calculated postcode (#118) X-Git-Url: https://git.openstreetmap.org./nominatim-ui.git/commitdiff_plain/9bd6e72026d6b978ed3f5004be73fd253ef82318 add help with overpass-turbo query for calculated postcode (#118) --- diff --git a/src/components/DetailsPostcodeHint.svelte b/src/components/DetailsPostcodeHint.svelte new file mode 100644 index 0000000..72d05b8 --- /dev/null +++ b/src/components/DetailsPostcodeHint.svelte @@ -0,0 +1,68 @@ + + +(how?) + +
+ + + Nightly calculated from nearby places having this postcode. + Documentation. + You can search for those with an Overpass Turbo query. +
+ + \ No newline at end of file diff --git a/src/pages/DetailsPage.svelte b/src/pages/DetailsPage.svelte index 500c5c3..34a7f63 100644 --- a/src/pages/DetailsPage.svelte +++ b/src/pages/DetailsPage.svelte @@ -11,6 +11,7 @@ import SearchSectionDetails from '../components/SearchSectionDetails.svelte'; import DetailsOneRow from '../components/DetailsOneRow.svelte'; import DetailsLink from '../components/DetailsLink.svelte'; + import DetailsPostcodeHint from '../components/DetailsPostcodeHint.svelte'; import InfoRow from '../components/DetailsInfoRow.svelte'; import InfoRowList from '../components/DetailsInfoRowList.svelte'; import Map from '../components/Map.svelte'; @@ -109,7 +110,12 @@ {#if aPlace.calculated_wikipedia} {@html wikipediaLink(aPlace)} {/if} - {aPlace.calculated_postcode || ''} + + {#if aPlace.calculated_postcode} + {aPlace.calculated_postcode} + + {/if} +