]> git.openstreetmap.org Git - nominatim.git/blobdiff - website/details.php
Implement geocoding and reverse geocoding with tiger interpolation lines instead...
[nominatim.git] / website / details.php
index 654cd7c7ae88e9d95955214afdad7c5d485205c8..4974717a4b5977452f259af1db586edbc90fdbe1 100755 (executable)
@@ -1,7 +1,8 @@
 <?php
        @define('CONST_ConnectionBucket_PageType', 'Details');
 
-       require_once(dirname(dirname(__FILE__)).'/lib/init-website.php');
+       require_once(dirname(dirname(__FILE__)).'/settings/settings.php');
+       require_once(CONST_BasePath.'/lib/init-website.php');
        require_once(CONST_BasePath.'/lib/log.php');
 
        $sOutputFormat = 'html';
 
        logEnd($oDB, $hLog, 1);
 
+       if ($sOutputFormat=='html')
+       {
+               $sDataDate = $oDB->getOne("select TO_CHAR(lastimportdate - '2 minutes'::interval,'YYYY/MM/DD HH24:MI')||' GMT' from import_status limit 1");
+               $sTileURL = CONST_Map_Tile_URL;
+               $sTileAttribution = CONST_Map_Tile_Attribution;
+       }
+
+       
        include(CONST_BasePath.'/lib/template/details-'.$sOutputFormat.'.php');