$aPlace['lat'] = $aPointDetails['lat'];
$aPlace['lon'] = $aPointDetails['lon'];
$aPlace['display_name'] = $aPointDetails['name'];
- $aPlace['place_rank'] = $aResult['rank_search'];
+ $aPlace['place_rank'] = $aPointDetails['rank_search'];
$aPlace['category'] = $aPointDetails['class'];
$aPlace['type'] = $aPointDetails['type'];
- if ($aPointDetails['icon'])
+ if (isset($aPointDetails['icon']))
{
$aPlace['icon'] = $aPointDetails['icon'];
}