]> git.openstreetmap.org Git - nominatim.git/blob - test/testdb/README.md
a39b0258a82d892509c721940e5abddd524f0651
[nominatim.git] / test / testdb / README.md
1 Creating the test database
2 ==========================
3
4 The official test dataset is derived from the 160725 planet. Newer
5 planets are likely to work as well but you may see isolated test
6 failures where the data has changed. To recreate the input data
7 for the test database run:
8
9     wget http://free.nchc.org.tw/osm.planet/pbf/planet-160725.osm.pbf
10     osmconvert planet-160725.osm.pbf -B=testdb.polys -o=testdb.pbf
11
12 Before importing make sure to add the following to your local settings:
13
14     @define('CONST_Database_DSN', 'pgsql://@/test_api_nominatim');
15     @define('CONST_Wikipedia_Data_Path', CONST_BasePath.'/test/testdb');