X-Git-Url: https://git.openstreetmap.org./nominatim.git/blobdiff_plain/7da9178b831f3888e8371bd79521a309ac7334d4..42a06c6bab36c357210fddfced2223ae2c0b191d:/lib/lib.php diff --git a/lib/lib.php b/lib/lib.php index 94bed6d8..2278c6c1 100644 --- a/lib/lib.php +++ b/lib/lib.php @@ -110,7 +110,7 @@ { $aResult = array(array(join(' ',$aWords))); $sFirstToken = ''; - if ($iDepth < 8) { + if ($iDepth < 7) { while(sizeof($aWords) > 1) { $sWord = array_shift($aWords); @@ -787,10 +787,10 @@ { preg_match_all('/(-?[0-9.]+) (-?[0-9.]+)/', $aMatch[1], $aPolyPoints, PREG_SET_ORDER); } - elseif (preg_match('#MULTIPOLYGON\\(\\(\\(([- 0-9.,]+)#', $geometry_as_text, $aMatch)) +/* elseif (preg_match('#MULTIPOLYGON\\(\\(\\(([- 0-9.,]+)#', $geometry_as_text, $aMatch)) { preg_match_all('/(-?[0-9.]+) (-?[0-9.]+)/', $aMatch[1], $aPolyPoints, PREG_SET_ORDER); - } + }*/ elseif (preg_match('#POINT\\((-?[0-9.]+) (-?[0-9.]+)\\)#', $geometry_as_text, $aMatch)) { $aPolyPoints = createPointsAroundCenter($aMatch[1], $aMatch[2], $fRadius);