The import command creates a new database from a Nominatim PostgreSQL database or a JSON dump file. Warning: This deletes any existing database.
Importing from Nominatim
Connect to a PostgreSQL server. Use these parameters to configure the connection:
-host, -port, -user, -password, -database
Note: The PostgreSQL user needs read access to query tables and permission to create an index on placex(country_code) if it doesn't exist. You may need to create this index manually: psql -d nominatim -c 'CREATE INDEX ON placex(country_code)'.
Importing from a JSON dump file
Use the -import-file parameter. You can pass a filename or - to read from standard input.
zstd --stdout -d photon-dump.jsonl.zst | java -jar photon.jar import -import-file -