X-Git-Url: https://git.openstreetmap.org./nominatim-ui.git/blobdiff_plain/bc04a4d42c96b05e62fd957149ff2006d016c62c..2ba00544d30017ad30570011b1a2bcc6a8da73a7:/src/components/DetailsOneRow.svelte?ds=sidebyside diff --git a/src/components/DetailsOneRow.svelte b/src/components/DetailsOneRow.svelte index 67c5152..8ba3769 100644 --- a/src/components/DetailsOneRow.svelte +++ b/src/components/DetailsOneRow.svelte @@ -8,6 +8,7 @@ export let addressLine; export let bDistanceInMeters; export let bMarkUnusedLines = false; + export let sCountryCode; $: bAddressLineUsed = addressLine.isaddress; $: reverse_only = Nominatim_Config.Reverse_Only; @@ -22,17 +23,26 @@ {/if} {formatPlaceType(addressLine)} + {@html osmLink(addressLine)} {addressLine.rank_address} {formatAdminLevel(addressLine.admin_level)} + {@html formatDistance(addressLine.distance, bDistanceInMeters)} {#if addressLine.osm_id} - details + + details + {:else if !reverse_only && addressLine.type.match(/^country/)} - search by name + + search by name + {:else if !reverse_only && addressLine.type === 'postcode'} - search by name + + search by name + {/if}