X-Git-Url: https://git.openstreetmap.org./nominatim.git/blobdiff_plain/a44e21de49d397d8fb6d860a03f1cde711be59c0..fbc93d0c45d708017242eea95591d2e87dc75042:/lib/template/search-html.php
diff --git a/lib/template/search-html.php b/lib/template/search-html.php
index 8b79e40c..7878540e 100644
--- a/lib/template/search-html.php
+++ b/lib/template/search-html.php
@@ -358,7 +358,7 @@ target="_blank">FAQ
echo ', '.$aResult['aBoundingBox'][1];
echo ', '.$aResult['aBoundingBox'][2];
echo ', '.$aResult['aBoundingBox'][3];
- if (isset($aResult['aPolyPoints'])) echo ', '.javascript_renderData($aResult['aPolyPoints']);
+ if (isset($aResult['aPolyPoints'])) echo ', '.json_encode($aResult['aPolyPoints']);
echo ');\'>';
}
elseif (isset($aResult['zoom']))
@@ -372,7 +372,7 @@ target="_blank">FAQ
echo (isset($aResult['icon'])?'':'');
echo ' '.$aResult['name'].'';
- echo ' '.round($aResult['lat'],3).','.round($aResult['lat'],3).'';
+ echo ' '.round($aResult['lat'],3).','.round($aResult['lon'],3).'';
echo ' '.$aResult['place_id'].'';
if (isset($aResult['label']))
echo ' ('.$aResult['label'].')';
@@ -450,7 +450,11 @@ init();
echo ', '.$aResult['aBoundingBox'][1];
echo ', '.$aResult['aBoundingBox'][2];
echo ', '.$aResult['aBoundingBox'][3];
- if (isset($aResult['aPolyPoints'])) echo ', '.javascript_renderData($aResult['aPolyPoints']);
+ if (isset($aResult['aPolyPoints']))
+ {
+ echo ', ';
+ echo javascript_renderData($aResult['aPolyPoints']);
+ }
echo ');'."\n";
}
else