X-Git-Url: https://git.openstreetmap.org/nominatim.git/blobdiff_plain/27bc8d4f7bb907699dbb974e8159f75bead831c9..b7abc8566ed5b67ddbbfed7e10701b4838008f6b:/website/search.php diff --git a/website/search.php b/website/search.php index 6dc44335..0ebf1814 100755 --- a/website/search.php +++ b/website/search.php @@ -26,7 +26,7 @@ if (CONST_Search_ReversePlanForAll } // Format for output -$sOutputFormat = $oParams->getSet('format', array('html', 'xml', 'json', 'jsonv2'), 'html'); +$sOutputFormat = $oParams->getSet('format', array('html', 'xml', 'json', 'jsonv2', 'geojson', 'geocodejson'), 'html'); $sForcedGeometry = ($sOutputFormat == 'html') ? 'geojson' : null; $oGeocode->loadParamArray($oParams, $sForcedGeometry); @@ -81,5 +81,5 @@ $sMoreURL = CONST_Website_BaseURL.'search.php?'.http_build_query($aMoreParams); if (CONST_Debug) exit; -$sOutputTemplate = ($sOutputFormat=='jsonv2' ? 'json' : $sOutputFormat); +$sOutputTemplate = ($sOutputFormat == 'jsonv2') ? 'json' : $sOutputFormat; include(CONST_BasePath.'/lib/template/search-'.$sOutputTemplate.'.php');