X-Git-Url: https://git.openstreetmap.org./nominatim.git/blobdiff_plain/a1f3bfb35afbe70f97b130874bd1b43ee844a6b2..d3ff9600b5e345239f4dc1b5d1b7244f5a25d051:/lib/template/search-json.php diff --git a/lib/template/search-json.php b/lib/template/search-json.php index 3dcaabdb..5f29fdfb 100644 --- a/lib/template/search-json.php +++ b/lib/template/search-json.php @@ -16,8 +16,8 @@ $aPlace['osm_id'] = $aPointDetails['osm_id']; } - if (isset($aPointDetails['aBoundingBox'])) - { + if (isset($aPointDetails['aBoundingBox'])) + { $aPlace['boundingbox'] = array( $aPointDetails['aBoundingBox'][0], $aPointDetails['aBoundingBox'][1], @@ -28,7 +28,7 @@ { $aPlace['polygonpoints'] = $aPointDetails['aPolyPoints']; } - } + } if (isset($aPointDetails['zoom'])) { @@ -52,22 +52,22 @@ if (isset($aPointDetails['address'])) { $aPlace['address'] = $aPointDetails['address']; - } - - if (isset($aPointDetails['asgeojson'])) - { - $aPlace['geojson'] = json_decode($aPointDetails['asgeojson']); - } - - if (isset($aPointDetails['assvg'])) - { - $aPlace['svg'] = $aPointDetails['assvg']; - } - - if (isset($aPointDetails['astext'])) - { - $aPlace['geotext'] = $aPointDetails['astext']; - } + } + + if (isset($aPointDetails['asgeojson'])) + { + $aPlace['geojson'] = json_decode($aPointDetails['asgeojson']); + } + + if (isset($aPointDetails['assvg'])) + { + $aPlace['svg'] = $aPointDetails['assvg']; + } + + if (isset($aPointDetails['astext'])) + { + $aPlace['geotext'] = $aPointDetails['astext']; + } if (isset($aPointDetails['askml'])) {