]> git.openstreetmap.org Git - nominatim.git/blobdiff - lib/template/search-xml.php
return a marginally better error message when query string is not in UTF-8,
[nominatim.git] / lib / template / search-xml.php
index 3d011b39c4d65708d59e484da5571a739f36cbf7..6e48be4c2ce3c3ae7a004cf6838b5d5f03e5ac1b 100644 (file)
@@ -31,6 +31,7 @@
                        echo " osm_type='$sOSMType'";\r
                        echo " osm_id='".$aResult['osm_id']."'";\r
                }\r
+               echo " place_rank='".$aResult['rank_search']."'";\r
 \r
                if (isset($aResult['aBoundingBox']))\r
                {\r
@@ -41,7 +42,7 @@
                        echo ','.$aResult['aBoundingBox'][3];\r
                        echo '"';\r
 \r
-                       if ($bShowPolygons)\r
+                       if ($bShowPolygons && isset($aResult['aPolyPoints']))\r
                        {\r
                                echo ' polygonpoints=\'';\r
                                echo javascript_renderData($aResult['aPolyPoints']);\r