echo " attribution='Data © OpenStreetMap contributors, ODbL 1.0. http://www.openstreetmap.org/copyright'";
echo " querystring='".htmlspecialchars($sQuery, ENT_QUOTES)."'";
if (isset($aMoreParams['viewbox'])) echo " viewbox='".htmlspecialchars($aMoreParams['viewbox'], ENT_QUOTES)."'";
-echo " polygon='".(isset($aMoreParams['polygon'])?'true':'false')."'";
if (isset($aMoreParams['exclude_place_ids'])) {
echo " exclude_place_ids='".htmlspecialchars($aMoreParams['exclude_place_ids'])."'";
}
echo ' boundingbox="';
echo join(',', $aResult['aBoundingBox']);
echo '"';
-
- if (isset($aResult['aPolyPoints'])) {
- echo ' polygonpoints=\'';
- echo json_encode($aResult['aPolyPoints']);
- echo '\'';
- }
}
if (isset($aResult['asgeojson'])) {
echo '>';
}
echo "\n";
- foreach ($aResult['address'] as $sKey => $sValue) {
+ foreach ($aResult['address']->getAddressNames() as $sKey => $sValue) {
$sKey = str_replace(' ', '_', $sKey);
echo "<$sKey>";
echo htmlspecialchars($sValue);