]> git.openstreetmap.org Git - nominatim-ui.git/blobdiff - dist/details.html
show admin level only for admin boundaries
[nominatim-ui.git] / dist / details.html
index a33aa38cbf21241827f5aafab30732bb2beecd24..16ebbc2415f9561f52f82ba771669aaf214a5aa5 100644 (file)
           <td>Last Updated</td>
           <td>{{aPlace.indexed_date}}</td>
         </tr>
+        {{#if (isAdminBoundary aPlace) }}
         <tr>
           <td>Admin Level</td>
           <td>{{aPlace.admin_level}}</td>
         </tr>
+        {{/if}}
+        <tr>
+          <td>Search Rank</td>
+          <td>{{aPlace.rank_search}}</td>
+        </tr>
         <tr>
-          <td>Rank</td>
-          <td>{{formatSearchRank aPlace.rank_search}}</td>
+          <td>Address Rank</td>
+          <td>{{aPlace.rank_address}} ({{formatAddressRank aPlace.rank_address}})</td>
         </tr>
         {{#if aPlace.calculated_importance}}
           <tr>