mirror of
https://github.com/osm-search/Nominatim.git
synced 2026-02-26 11:08:13 +00:00
forgot some brackets
This commit is contained in:
@@ -148,7 +148,7 @@ $sVal = $aPointDetails['errormessage']?$aPointDetails['errormessage']:' ';
|
|||||||
$sOSMType = ($aPointDetails['osm_type'] == 'N'?'node':($aPointDetails['osm_type'] == 'W'?'way':($aPointDetails['osm_type'] == 'R'?'relation':'')));
|
$sOSMType = ($aPointDetails['osm_type'] == 'N'?'node':($aPointDetails['osm_type'] == 'W'?'way':($aPointDetails['osm_type'] == 'R'?'relation':'')));
|
||||||
$sOSMID = $aPointDetails['osm_id'];
|
$sOSMID = $aPointDetails['osm_id'];
|
||||||
|
|
||||||
if (isset($aPointDetails['error_x'])
|
if (isset($aPointDetails['error_x']))
|
||||||
{
|
{
|
||||||
$sLat = $aPointDetails['error_y'];
|
$sLat = $aPointDetails['error_y'];
|
||||||
$sLon = $aPointDetails['error_x'];
|
$sLon = $aPointDetails['error_x'];
|
||||||
@@ -160,7 +160,7 @@ else
|
|||||||
}
|
}
|
||||||
?>
|
?>
|
||||||
<p><b>Edit:</b> in <?php
|
<p><b>Edit:</b> in <?php
|
||||||
if (isset($aPointDetails['error_x'])
|
if (isset($aPointDetails['error_x']))
|
||||||
{
|
{
|
||||||
$fWidth = 0.0002;
|
$fWidth = 0.0002;
|
||||||
echo " <a href=\"http://localhost:8111/load_and_zoom?left=".($sLon-$fWidth)."&right=".($sLon+$fWidth)."&top=".($sLat+$fWidth)."&bottom=".($sLat-$fWidth)."\" target=\"josm\">Remote Control (JOSM / Merkaartor)</a>";
|
echo " <a href=\"http://localhost:8111/load_and_zoom?left=".($sLon-$fWidth)."&right=".($sLon+$fWidth)."&top=".($sLat+$fWidth)."&bottom=".($sLat-$fWidth)."\" target=\"josm\">Remote Control (JOSM / Merkaartor)</a>";
|
||||||
|
|||||||
@@ -151,7 +151,7 @@ body {
|
|||||||
echo '<span class="type"><span class="label">Type: </span>'.$aAddressLine['class'].':'.$aAddressLine['type'].'</span>';
|
echo '<span class="type"><span class="label">Type: </span>'.$aAddressLine['class'].':'.$aAddressLine['type'].'</span>';
|
||||||
if ($sOSMType) echo ', <span class="osm"><span class="label"></span>'.$sOSMType.' <a href="http://www.openstreetmap.org/browse/'.$sOSMType.'/'.$aAddressLine['osm_id'].'">'.$aAddressLine['osm_id'].'</a></span>';
|
if ($sOSMType) echo ', <span class="osm"><span class="label"></span>'.$sOSMType.' <a href="http://www.openstreetmap.org/browse/'.$sOSMType.'/'.$aAddressLine['osm_id'].'">'.$aAddressLine['osm_id'].'</a></span>';
|
||||||
echo ', <span class="adminlevel">'.$aAddressLine['admin_level'].'</span>';
|
echo ', <span class="adminlevel">'.$aAddressLine['admin_level'].'</span>';
|
||||||
if (isset($aAddressLine['rank_search_label']) echo ', <span class="rankaddress">'.$aAddressLine['rank_search_label'].'</span>';
|
if (isset($aAddressLine['rank_search_label'])) echo ', <span class="rankaddress">'.$aAddressLine['rank_search_label'].'</span>';
|
||||||
// echo ', <span class="area">'.($aAddressLine['fromarea']=='t'?'Polygon':'Point').'</span>';
|
// echo ', <span class="area">'.($aAddressLine['fromarea']=='t'?'Polygon':'Point').'</span>';
|
||||||
echo ', <span class="distance">'.$aAddressLine['distance'].'</span>';
|
echo ', <span class="distance">'.$aAddressLine['distance'].'</span>';
|
||||||
echo ' <a href="details.php?place_id='.$aAddressLine['place_id'].'">GOTO</a>';
|
echo ' <a href="details.php?place_id='.$aAddressLine['place_id'].'">GOTO</a>';
|
||||||
|
|||||||
Reference in New Issue
Block a user