Using local Nominatim service: recommended to use gunicorn or just system('nominatim...') or what? #3860
-
|
I have setup Nominatim locally in order to be used from a project (which is an online application which includes maps and geocoding) on the local server. The only user of Nominatim will be my local project (and via my local project the world). I wonder if it is recommended to search Nominatim via sending requests to Is there another way to search Nominatim locally? thank you and thank you for this software whose installation was quite easy! |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
|
With shell you'd compile and initialize (database connection etc) the Python script ( If you web app is already written in Python then an alternative is to load Nominatim as python library https://nominatim.org/release-docs/latest/library/Getting-Started/ Most people with web apps use the Gunicorn approach. |
Beta Was this translation helpful? Give feedback.
-
|
thanks, |
Beta Was this translation helpful? Give feedback.
With shell you'd compile and initialize (database connection etc) the Python script (
nominatim) for each request. Gunicorn app server has the advantage that the Python script is loaded once and stays in memory. That'll be faster.If you web app is already written in Python then an alternative is to load Nominatim as python library https://nominatim.org/release-docs/latest/library/Getting-Started/
Most people with web apps use the Gunicorn approach.