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