X-Git-Url: https://git.openstreetmap.org./nominatim-ui.git/blobdiff_plain/21bcfb32a13839ff8c69a452d09e294da800a15a..b663bdadf4374b4b660755401bf16f66e4c464b5:/src/components/DetailsOneRow.svelte
diff --git a/src/components/DetailsOneRow.svelte b/src/components/DetailsOneRow.svelte
index cd74d93..8ba3769 100644
--- a/src/components/DetailsOneRow.svelte
+++ b/src/components/DetailsOneRow.svelte
@@ -7,13 +7,15 @@
export let addressLine;
export let bDistanceInMeters;
+ export let bMarkUnusedLines = false;
+ export let sCountryCode;
$: bAddressLineUsed = addressLine.isaddress;
-
+ $: reverse_only = Nominatim_Config.Reverse_Only;
-
-
+ |
+
{#if addressLine.localname}
{addressLine.localname}
{:else}
@@ -21,26 +23,37 @@
{/if}
|
{formatPlaceType(addressLine)} |
+
{@html osmLink(addressLine)} |
{addressLine.rank_address} |
{formatAdminLevel(addressLine.admin_level)} |
+
{@html formatDistance(addressLine.distance, bDistanceInMeters)} |
{#if addressLine.osm_id}
- details
- {:else if addressLine.type.match(/^country/)}
- search by name
- {:else if addressLine.type === 'postcode'}
- search by name
+
+ details
+
+ {:else if !reverse_only && addressLine.type.match(/^country/)}
+
+ search by name
+
+ {:else if !reverse_only && addressLine.type === 'postcode'}
+
+ search by name
+
{/if}
|