X-Git-Url: https://git.openstreetmap.org./nominatim-ui.git/blobdiff_plain/0af7af382b5cf0cb446fa1c0084d38609c543daf..d7fc469d21068cd4812ede69677490c96292dd6d:/src/pages/DetailsPage.svelte diff --git a/src/pages/DetailsPage.svelte b/src/pages/DetailsPage.svelte index b7c436d..500c5c3 100644 --- a/src/pages/DetailsPage.svelte +++ b/src/pages/DetailsPage.svelte @@ -11,10 +11,12 @@ import SearchSectionDetails from '../components/SearchSectionDetails.svelte'; import DetailsOneRow from '../components/DetailsOneRow.svelte'; import DetailsLink from '../components/DetailsLink.svelte'; + import InfoRow from '../components/DetailsInfoRow.svelte'; + import InfoRowList from '../components/DetailsInfoRowList.svelte'; import Map from '../components/Map.svelte'; let aPlace; - let base_url = window.location.search; + let base_url; let api_request_params; let api_request_finished = false; @@ -55,6 +57,7 @@ let pageinfo = $page; if (pageinfo.tab === 'details') { loaddata(pageinfo.params); + base_url = window.location.search; } } @@ -78,100 +81,37 @@
Name | -
- {#each Object.keys(aPlace.names) as name}
-
- {aPlace.names[name]} ({name})
-
- {/each}
- |
-
Type | -{aPlace.category}:{aPlace.type} | -
Last Updated | -{aPlace.indexed_date} | -
Admin Level | -{aPlace.admin_level} | -
Search Rank | -{aPlace.rank_search} | -
Address Rank | -{aPlace.rank_address} ({formatAddressRank(aPlace.rank_address)}) | -
Importance | -
+ |
-
Coverage | -{coverageType(aPlace)} | -
Centre Point (lat,lon) | -
+ |
-
OSM | -{@html osmLink(aPlace)} - |
- Place Id - (on this server) - | -{aPlace.place_id} | -
Wikipedia Calculated | -{@html wikipediaLink(aPlace)} | -
Computed Postcode | -{aPlace.calculated_postcode} | -
Address Tags | -
- {#each Object.keys(aPlace.addresstags) as name}
-
- {aPlace.addresstags[name]} ({name})
-
- {/each}
- |
-
Extra Tags | -
- {#each Object.keys(aPlace.extratags) as name}
-
- {aPlace.extratags[name]} ({name})
-
- {/each}
- |
-