X-Git-Url: https://git.openstreetmap.org./nominatim.git/blobdiff_plain/1d89098f7709791cafca26c72ceb59bbbf817a51..fc96bee063c26ade2cdc89f255de580de9d43009:/lib/lib.php diff --git a/lib/lib.php b/lib/lib.php index 51bf7ebb..e657daf4 100644 --- a/lib/lib.php +++ b/lib/lib.php @@ -184,7 +184,7 @@ { $aResult = array(array(join(' ',$aWords))); $sFirstToken = ''; - if ($iDepth < 8) { + if ($iDepth < 7) { while(sizeof($aWords) > 1) { $sWord = array_shift($aWords); @@ -1060,10 +1060,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);