if (isset($aPlace['lon'])) echo ' lon="'.htmlspecialchars($aPlace['lon']).'"';\r
echo ">".htmlspecialchars($aPlace['langaddress'])."</result>";\r
\r
- echo "<addressparts>";\r
- foreach($aAddress as $sKey => $sValue)\r
- {\r
- $sKey = str_replace(' ','_',$sKey);\r
- echo "<$sKey>";\r
- echo htmlspecialchars($sValue);\r
- echo "</$sKey>";\r
- }\r
- echo "</addressparts>";\r
+ if ($bShowAddressDetails) {\r
+ echo "<addressparts>";\r
+ foreach($aAddress as $sKey => $sValue)\r
+ {\r
+ $sKey = str_replace(' ','_',$sKey);\r
+ echo "<$sKey>";\r
+ echo htmlspecialchars($sValue);\r
+ echo "</$sKey>";\r
+ }\r
+ echo "</addressparts>";\r
+ }\r
}\r
\r
echo "</reversegeocode>";\r