]> git.openstreetmap.org Git - nominatim.git/blobdiff - website/reverse.php
Merge pull request #969 from mtmail/update-vagrant-md
[nominatim.git] / website / reverse.php
index b6d0f5e6de0b3d406bfc99f94ab25cf349403650..6df90029052bdf6c00443384d6e55f93672da485 100755 (executable)
@@ -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');