X-Git-Url: https://git.openstreetmap.org./nominatim.git/blobdiff_plain/cefa7a3c3bba1e072e1518062da7fd1c1facdc00..98cb868ec119fca6eeec9145afe79bb9a621b4a4:/utils/setup.php?ds=sidebyside diff --git a/utils/setup.php b/utils/setup.php index c45cc857..fbf902e7 100755 --- a/utils/setup.php +++ b/utils/setup.php @@ -613,7 +613,7 @@ } // Find the last node in the DB - $iLastOSMID = $oDB->getOne("select max(id) from planet_osm_nodes"); + $iLastOSMID = $oDB->getOne("select max(osm_id) from place where osm_type = 'N'"); // Lookup the timestamp that node was created (less 3 hours for margin for changsets to be closed) $sLastNodeURL = 'http://www.openstreetmap.org/api/0.6/node/'.$iLastOSMID."/1";