From 9bd6e72026d6b978ed3f5004be73fd253ef82318 Mon Sep 17 00:00:00 2001 From: mtmail Date: Mon, 12 Apr 2021 16:59:53 +0200 Subject: [PATCH] add help with overpass-turbo query for calculated postcode (#118) --- src/components/DetailsPostcodeHint.svelte | 68 +++++++++++++++++++++++ src/pages/DetailsPage.svelte | 8 ++- 2 files changed, 75 insertions(+), 1 deletion(-) create mode 100644 src/components/DetailsPostcodeHint.svelte 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} + -- 2.39.5