mirror of
https://github.com/osm-search/Nominatim.git
synced 2026-02-16 15:47:58 +00:00
Reverse geocode include geometry - added bounding box tests
This commit is contained in:
@@ -1647,10 +1647,7 @@
|
||||
$oPlaceLookup->setPolygonSimplificationThreshold($this->fPolygonSimplificationThreshold);
|
||||
|
||||
$aOutlineResult = $oPlaceLookup->getOutlines($aResult['place_id'], $aResult['lon'], $aResult['lat'], $fDiameter/2);
|
||||
foreach($aOutlineResult as $k => $v)
|
||||
{
|
||||
$aResult[$k] = $v;
|
||||
}
|
||||
$aResult = array_merge($aResult, $aOutlineResult);
|
||||
|
||||
if ($aResult['extra_place'] == 'city')
|
||||
{
|
||||
|
||||
@@ -18,7 +18,7 @@
|
||||
|
||||
if (isset($aPointDetails['aBoundingBox']))
|
||||
{
|
||||
$aPlace['boundingbox'] = $aPointDetails['aBoundingBox'][0];
|
||||
$aPlace['boundingbox'] = $aPointDetails['aBoundingBox'];
|
||||
|
||||
if (isset($aPointDetails['aPolyPoints']) && $bShowPolygons)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user