return actual centroid lat,lon of reverse geocoding result

This commit is contained in:
Brian Quinion
2011-04-07 15:57:57 +00:00
parent 1028c2444c
commit 2eccb0e69d
4 changed files with 12 additions and 3 deletions

View File

@@ -21,6 +21,8 @@
$aFilteredPlaces['osm_type'] = $sOSMType;
$aFilteredPlaces['osm_id'] = $aPlace['osm_id'];
}
if (isset($aPlace['lat'])) $aFilteredPlaces['lat'] = $aPlace['lat'];
if (isset($aPlace['lon'])) $aFilteredPlaces['lon'] = $aPlace['lon'];
$aFilteredPlaces['category'] = $aPlace['class'];
$aFilteredPlaces['type'] = $aPlace['type'];
$aFilteredPlaces['addresstype'] = strtolower($aPlace['addresstype']);