3 export let addressLine;
4 export let bDistanceInMeters;
6 $: bAddressLineUsed = addressLine.isaddress;
9 formatPlaceType, osmLink, formatAdminLevel, formatDistance, detailsURL
10 } from '../lib/helpers.js';
14 <tr class:notused={!bAddressLineUsed}>
16 {#if addressLine.localname}
17 {addressLine.localname}
19 <span class="noname">No Name</span>
22 <td>{formatPlaceType(addressLine)}</td>
23 <td>{@html osmLink(addressLine)}</td>
24 <td>{addressLine.rank_address}</td>
25 <td>{formatAdminLevel(addressLine.admin_level)}</td>
26 <td>{@html formatDistance(addressLine.distance, bDistanceInMeters)}</td>
27 <td>{#if addressLine.osm_id}<a href="{detailsURL(addressLine)}">details</a>{/if}</td>