File tree 1 file changed +16
-3
lines changed
1 file changed +16
-3
lines changed Original file line number Diff line number Diff line change 1
1
#! /bin/bash -e
2
2
3
+ # For Nominatim < 3.7 set this to the Nominatim build directory.
4
+ # For newer versions, this must be the project directory of your import.
5
+ NOMINATIM_DIR=
6
+
3
7
while true
4
8
do
5
9
starttime=` date +%s`
6
10
11
+ # First consume updates in the Nominatim database.
12
+ # The important part here is to leave out the indexing step. This
13
+ # will be handled by Photon.
14
+
7
15
cd $NOMINATIM_DIR
8
- ./utils/update.php --no-npi --import-osmosis --no-index
16
+ # For Nominatim versions < 3.7 use the following:
17
+ # ./utils/update.php --import-osmosis --no-index
18
+ nominatim replication --once --no-index
9
19
20
+ # Now tell Photon to finish the updates and copy the new data into its
21
+ # own database.
10
22
curl http://localhost:2322/nominatim-update
11
23
12
- # sleep a bit if updates take less than a minute
24
+ # Sleep a bit if updates take less than a minute.
25
+ # If you consume hourly or daily diffs adapt the period accordingly.
13
26
endtime=` date +%s`
14
27
elapsed=$(( endtime - starttime))
15
28
if [[ $elapsed -lt 60 ]]
18
31
echo " Sleeping for ${sleepy} s..."
19
32
sleep $sleepy
20
33
fi
21
- done
34
+ done
You can’t perform that action at this time.
0 commit comments