mirror of
https://github.com/osm-search/Nominatim.git
synced 2026-02-26 11:08:13 +00:00
details html page: no longer use place_id in URLs
This commit is contained in:
@@ -85,7 +85,7 @@
|
|||||||
else
|
else
|
||||||
echo ' <span class="type">('.ucwords(str_replace('_',' ',$aResult['type'])).')</span>';
|
echo ' <span class="type">('.ucwords(str_replace('_',' ',$aResult['type'])).')</span>';
|
||||||
echo '<p>'.$aResult['lat'].','.$aResult['lon'].'</p>';
|
echo '<p>'.$aResult['lat'].','.$aResult['lon'].'</p>';
|
||||||
echo ' <a class="btn btn-default btn-xs details" href="details.php?place_id='.$aResult['place_id'].'">details</a>';
|
echo ' <a class="btn btn-default btn-xs details" href="details.php?osmtype='.$aResult['osm_type'].'&osmid='.$aResult['osm_id'].'&class='.$aResult['class'].'">details</a>';
|
||||||
echo '</div>';
|
echo '</div>';
|
||||||
?>
|
?>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@@ -75,7 +75,7 @@
|
|||||||
echo ' <td>' . (isset($aAddressLine['rank_address']) ? $aAddressLine['rank_address'] : '') . "</td>\n";
|
echo ' <td>' . (isset($aAddressLine['rank_address']) ? $aAddressLine['rank_address'] : '') . "</td>\n";
|
||||||
echo ' <td>' . ($aAddressLine['admin_level'] < 15 ? $aAddressLine['admin_level'] : '') . "</td>\n";
|
echo ' <td>' . ($aAddressLine['admin_level'] < 15 ? $aAddressLine['admin_level'] : '') . "</td>\n";
|
||||||
echo ' <td>' . format_distance($aAddressLine['distance'], $bDistanceInMeters)."</td>\n";
|
echo ' <td>' . format_distance($aAddressLine['distance'], $bDistanceInMeters)."</td>\n";
|
||||||
echo ' <td>' . detailsLink($aAddressLine,'details >') . "</td>\n";
|
echo ' <td>' . detailsPermaLink($aAddressLine,'details >') . "</td>\n";
|
||||||
echo "</tr>\n";
|
echo "</tr>\n";
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -103,7 +103,6 @@
|
|||||||
<div class="col-sm-10">
|
<div class="col-sm-10">
|
||||||
<h1>
|
<h1>
|
||||||
<?php echo $aPointDetails['localname'] ?>
|
<?php echo $aPointDetails['localname'] ?>
|
||||||
<small><?php echo detailsPermaLink($aPointDetails, 'link to this page') ?></small>
|
|
||||||
</h1>
|
</h1>
|
||||||
</div>
|
</div>
|
||||||
<div class="col-sm-2 text-right">
|
<div class="col-sm-2 text-right">
|
||||||
@@ -127,6 +126,8 @@
|
|||||||
kv('Coverage' , ($aPointDetails['isarea']?'Polygon':'Point') );
|
kv('Coverage' , ($aPointDetails['isarea']?'Polygon':'Point') );
|
||||||
kv('Centre Point' , $aPointDetails['lat'].','.$aPointDetails['lon'] );
|
kv('Centre Point' , $aPointDetails['lat'].','.$aPointDetails['lon'] );
|
||||||
kv('OSM' , osmLink($aPointDetails) );
|
kv('OSM' , osmLink($aPointDetails) );
|
||||||
|
kv('Place Id (<a href="https://nominatim.org/release-docs/develop/api/Output/#place_id-is-not-a-persistent-id">on this server</a>)'
|
||||||
|
, $aPointDetails['place_id'] );
|
||||||
if ($aPointDetails['wikipedia'])
|
if ($aPointDetails['wikipedia'])
|
||||||
{
|
{
|
||||||
kv('Wikipedia Calculated' , wikipediaLink($aPointDetails) );
|
kv('Wikipedia Calculated' , wikipediaLink($aPointDetails) );
|
||||||
|
|||||||
@@ -53,7 +53,7 @@
|
|||||||
echo ' <span class="type">('.ucwords(str_replace('_',' ',$aResult['class'])).')</span>';
|
echo ' <span class="type">('.ucwords(str_replace('_',' ',$aResult['class'])).')</span>';
|
||||||
else
|
else
|
||||||
echo ' <span class="type">('.ucwords(str_replace('_',' ',$aResult['type'])).')</span>';
|
echo ' <span class="type">('.ucwords(str_replace('_',' ',$aResult['type'])).')</span>';
|
||||||
echo ' <a class="btn btn-default btn-xs details" href="details.php?place_id='.$aResult['place_id'].'">details</a>';
|
echo ' <a class="btn btn-default btn-xs details" href="details.php?osmtype='.$aResult['osm_type'].'&osmid='.$aResult['osm_id'].'&class='.$aResult['class'].'">details</a>';
|
||||||
echo '</div>';
|
echo '</div>';
|
||||||
$i = $i+1;
|
$i = $i+1;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user