XML and JSON map 'ploygon' param to AsPoints

This commit is contained in:
Brian Quinion
2013-09-02 16:44:40 +01:00
parent b3ed566d15
commit 6a337f13d0
2 changed files with 2 additions and 1 deletions

View File

@@ -1394,6 +1394,7 @@
$aResult['lat'] = $aPointPolygon['centrelat'];
$aResult['lon'] = $aPointPolygon['centrelon'];
}
if ($this->bIncludePolygonAsPoints)
{
// Translate geometary string to point array

View File

@@ -151,7 +151,7 @@
}
exit;
}
$oGeocode->setIncludePolygonAsText($bAsPoints);
$oGeocode->setIncludePolygonAsPoints($bAsPoints);
$oGeocode->setIncludePolygonAsText($bAsText);
$oGeocode->setIncludePolygonAsGeoJSON($bAsGeoJSON);
$oGeocode->setIncludePolygonAsKML($bAsKML);