]> git.openstreetmap.org Git - nominatim.git/blobdiff - website/details.php
calculate search position based to 'importance' rather than address rank
[nominatim.git] / website / details.php
index 3c4581d5262d63aa6aed28fd561075c06a9c0bd7..2e5a6c9fe35de5ee09e0243e5b7be101f5509112 100755 (executable)
        {
                preg_match_all('/(-?[0-9.]+) (-?[0-9.]+)/',$aMatch[1],$aPolyPoints,PREG_SET_ORDER);
        }
+       elseif (preg_match('#MULTIPOLYGON\\(\\(\\(([- 0-9.,]+)#',$aPointPolygon['outlinestring'],$aMatch))
+       {
+               // TODO: this just takes the first ring
+               preg_match_all('/(-?[0-9.]+) (-?[0-9.]+)/',$aMatch[1],$aPolyPoints,PREG_SET_ORDER);
+       }
        elseif (preg_match('#POINT\\((-?[0-9.]+) (-?[0-9.]+)\\)#',$aPointPolygon['outlinestring'],$aMatch))
        {
                $fRadius = 0.01;