-
Hey, we're currently looking into switching our geocoder from Pelias to Nominatim. If so, how would one go about this? There is unfortunately no documentation regarding this, or at least none I could find. Best regards, |
Beta Was this translation helpful? Give feedback.
Replies: 4 comments 1 reply
-
Is the question if you can use a tile-server or overpass database? Nominatim requires its own database. It uses different table structure, it imports different data. You can have multiple databases on the same server but there will be duplicate data I'm afraid. |
Beta Was this translation helpful? Give feedback.
-
Nominatim states that it
This suggests that it should be possible to use an existing database created by something like
The docs keep quiet about this, though… |
Beta Was this translation helpful? Give feedback.
-
If you feel like experimenting, you can try out https://nominatim.org/tutorials/running-nomintim-and-rendering-together.html Don't expect to save much space. The only part of the database that is shared by rendering and geocoding is the backstorage. Because of this feedback form people was mixed regarding the question if the saved space is worth the additional setup effort. |
Beta Was this translation helpful? Give feedback.
-
Thank you both so much for your explanation :) |
Beta Was this translation helpful? Give feedback.
osm2pgsql is a generic tool which uses configuration to set which input goes into which database tables. The default is a
default.style
file (https://osm2pgsql.org/doc/man/version-1-11-0.html). Nominatim uses the flex output (https://osm2pgsql.org/doc/manual.html#the-flex-output) and *.lua scripts (https://github.com/osm-search/Nominatim/tree/master/settings) for its osm2psql configuration. The resulting database tables have different column and contain different data than a default osm2pgql import.