X-Git-Url: https://git.openstreetmap.org./nominatim.git/blobdiff_plain/6a3c6c43ea7133c934834ce1face9212f4e3d239..64957170360f6d5bdf00c741de30b7df77f23bd3:/website/reverse.php diff --git a/website/reverse.php b/website/reverse.php index b6d0f5e6..6df90029 100755 --- a/website/reverse.php +++ b/website/reverse.php @@ -76,4 +76,6 @@ if ($sOutputFormat == 'html') { $sTileURL = CONST_Map_Tile_URL; $sTileAttribution = CONST_Map_Tile_Attribution; } -include(CONST_BasePath.'/lib/template/address-'.$sOutputFormat.'.php'); + +$sOutputTemplate = ($sOutputFormat=='jsonv2' ? 'json' : $sOutputFormat); +include(CONST_BasePath.'/lib/template/address-'.$sOutputTemplate.'.php');