X-Git-Url: https://git.openstreetmap.org./nominatim.git/blobdiff_plain/465d82a92fd10b727db6aab68b47099dd126d8f6..7698f0672d77ae5ccce58ce3d239f1484781505f:/nominatim/clicmd/args.py diff --git a/nominatim/clicmd/args.py b/nominatim/clicmd/args.py index 4457db5f..9be20b20 100644 --- a/nominatim/clicmd/args.py +++ b/nominatim/clicmd/args.py @@ -42,12 +42,6 @@ class NominatimArgs: # Basic environment set by root program. config: Configuration project_dir: Path - module_dir: Path - osm2pgsql_path: Path - phplib_dir: Path - sqllib_dir: Path - data_dir: Path - config_dir: Path phpcgi_path: Path # Global switches @@ -115,6 +109,7 @@ class NominatimArgs: address_levels: bool functions: bool wiki_data: bool + secondary_importance: bool importance: bool website: bool diffs: bool @@ -132,6 +127,7 @@ class NominatimArgs: # Arguments to 'serve' server: str + engine: str # Arguments to 'special-phrases import_from_wiki: bool @@ -172,6 +168,11 @@ class NominatimArgs: # Arguments to 'details' object_class: Optional[str] + linkedplaces: bool + hierarchy: bool + keywords: bool + polygon_geojson: bool + group_hierarchy: bool def osm2pgsql_options(self, default_cache: int, @@ -180,9 +181,10 @@ class NominatimArgs: from the command line arguments. The resulting dict can be further customized and then used in `run_osm2pgsql()`. """ - return dict(osm2pgsql=self.config.OSM2PGSQL_BINARY or self.osm2pgsql_path, + return dict(osm2pgsql=self.config.OSM2PGSQL_BINARY or self.config.lib_dir.osm2pgsql, osm2pgsql_cache=self.osm2pgsql_cache or default_cache, osm2pgsql_style=self.config.get_import_style_file(), + osm2pgsql_style_path=self.config.config_dir, threads=self.threads or default_threads, dsn=self.config.get_libpq_dsn(), flatnode_file=str(self.config.get_path('FLATNODE_FILE') or ''),