]> git.openstreetmap.org Git - nominatim.git/commitdiff
XML and JSON map 'ploygon' param to AsPoints
authorBrian Quinion <brian.quinion@mapquest.com>
Mon, 2 Sep 2013 15:44:40 +0000 (16:44 +0100)
committerBrian Quinion <brian.quinion@mapquest.com>
Fri, 6 Sep 2013 08:47:46 +0000 (09:47 +0100)
lib/Geocode.php
website/search.php

index e5f3a1572832a3ed148dfca4704ac4e7c6f55543..0e4bd0a0ab60dbe1ec2f03d7a732b1db1923b2fa 100644 (file)
                                                        $aResult['lat'] = $aPointPolygon['centrelat'];
                                                        $aResult['lon'] = $aPointPolygon['centrelon'];
                                                }
+
                                                if ($this->bIncludePolygonAsPoints)
                                                {
                                                        // Translate geometary string to point array
index 22a1c7c0605e7713fb3834d2fe6f4515de7ffad0..8e0bb6f64557c56d97d0a71c988a6304d53bb200 100755 (executable)
                        }
                        exit;
                }
-               $oGeocode->setIncludePolygonAsText($bAsPoints);
+               $oGeocode->setIncludePolygonAsPoints($bAsPoints);
                $oGeocode->setIncludePolygonAsText($bAsText);
                $oGeocode->setIncludePolygonAsGeoJSON($bAsGeoJSON);
                $oGeocode->setIncludePolygonAsKML($bAsKML);