+ $aPlace = $oPlaceLookup->lookup((int)$aLookup['place_id'],
+ $aLookup['type'], $aLookup['fraction']);
+ }
+ else if ($sOutputFormat != 'html')
+ {
+ userError("Need coordinates or OSM object to lookup.");
+ }
+
+ if ($aPlace)
+ {
+ $oPlaceLookup->setIncludePolygonAsPoints(false);
+ $oPlaceLookup->setIncludePolygonAsText($bAsText);
+ $oPlaceLookup->setIncludePolygonAsGeoJSON($bAsGeoJSON);
+ $oPlaceLookup->setIncludePolygonAsKML($bAsKML);
+ $oPlaceLookup->setIncludePolygonAsSVG($bAsSVG);
+ $oPlaceLookup->setPolygonSimplificationThreshold($fThreshold);
+
+ $fRadius = $fDiameter = getResultDiameter($aPlace);
+ $aOutlineResult = $oPlaceLookup->getOutlines($aPlace['place_id'],
+ $aPlace['lon'], $aPlace['lat'],
+ $fRadius);
+
+ if ($aOutlineResult)
+ {
+ $aPlace = array_merge($aPlace, $aOutlineResult);
+ }