2 import DetailsLink from '../components/DetailsLink.svelte';
4 export let addressLine;
5 export let bDistanceInMeters;
7 $: bAddressLineUsed = addressLine.isaddress;
10 formatPlaceType, osmLink, formatAdminLevel, formatDistance
11 } from '../lib/helpers.js';
15 <tr class:notused={!bAddressLineUsed}>
17 {#if addressLine.localname}
18 {addressLine.localname}
20 <span class="noname">No Name</span>
23 <td>{formatPlaceType(addressLine)}</td>
24 <td>{@html osmLink(addressLine)}</td>
25 <td>{addressLine.rank_address}</td>
26 <td>{formatAdminLevel(addressLine.admin_level)}</td>
27 <td>{@html formatDistance(addressLine.distance, bDistanceInMeters)}</td>
28 <td>{#if addressLine.osm_id}<DetailsLink feature={addressLine}>details</DetailsLink>{/if}</td>