X-Git-Url: https://git.openstreetmap.org./nominatim.git/blobdiff_plain/b0ed31b6d48da40f90d3fd0e0aa71394984a6c76..d3c883f1b5e1db91997ec5c4fe4a631e7135dc3f:/lib/template/search-html.php
diff --git a/lib/template/search-html.php b/lib/template/search-html.php
index 986b4e4d..a9d328a8 100644
--- a/lib/template/search-html.php
+++ b/lib/template/search-html.php
@@ -290,7 +290,7 @@ form{
projection: new OpenLayers.Projection("EPSG:900913"),
displayProjection: new OpenLayers.Projection("EPSG:4326"),
eventListeners: {
- "moveend": mapEventMove,
+ "moveend": mapEventMove
}
} );
map.addLayer(new OpenLayers.Layer.OSM.("Default"));
@@ -372,7 +372,10 @@ target="_blank">FAQ
echo ' '.$aResult['name'].'';
echo ' '.round($aResult['lat'],3).','.round($aResult['lat'],3).'';
echo ' '.$aResult['place_id'].'';
- echo ' ('.ucwords(str_replace('_',' ',$aResult['type'])).')';
+ if (isset($aResult['label']))
+ echo ' ('.$aResult['label'].')';
+ else
+ echo ' ('.ucwords(str_replace('_',' ',$aResult['type'])).')';
echo ' (details)';
echo '';
}