]> git.openstreetmap.org Git - nominatim.git/blobdiff - lib-php/website/status.php
cache all postcodes
[nominatim.git] / lib-php / website / status.php
index 9f030fb3ea38314047b50973bc6929aa80117de3..7c7eb9281c5e449fb09a52f18ce8c1153273e7e7 100644 (file)
@@ -37,8 +37,13 @@ if ($sOutputFormat == 'json') {
     $aResponse = array(
                   'status' => 0,
                   'message' => 'OK',
-                  'data_updated' => (new DateTime('@'.$epoch))->format(DateTime::RFC3339)
+                  'data_updated' => (new DateTime('@'.$epoch))->format(DateTime::RFC3339),
+                  'software_version' => CONST_NominatimVersion
                  );
+    $sDatabaseVersion = $oStatus->databaseVersion();
+    if ($sDatabaseVersion) {
+        $aResponse['database_version'] = $sDatabaseVersion;
+    }
     javascript_renderData($aResponse);
 } else {
     echo 'OK';