mediagis / nominatim-docker

100% working container for Nominatim
Creative Commons Zero v1.0 Universal
1.03k stars 434 forks source link

Import Style Customization #535

Closed LawrenceWlt closed 4 months ago

LawrenceWlt commented 4 months ago

I need to import a few extra tags but I don't see any option to customize import styles. It is either you have all the extra tags or none at all.

mtmail commented 4 months ago

The NOMINATIM_IMPORT_STYLE setting in the .env can be a name or a file name. As far as I see the Docker script copies the Docker environment variable IMPORT_STYLE into NOMINATIM_IMPORT_STYLE so it should just work.

You can copy one of the existing styles and add your own rules in a new file. https://nominatim.org/release-docs/4.3/customize/Import-Styles/

LawrenceWlt commented 4 months ago

Thanks. Let me try that.

LawrenceWlt commented 4 months ago

Passing the file path worked. However, the tag that I desired to be part of the extra tags didn't show up. In my case am trying to add maxspeed as follows: extra_keys = {'wikipedia', 'wikipedia:*', 'wikidata', 'capital', 'area', 'maxspeed'} any help will be highly appreciated. Thanks

mtmail commented 4 months ago

Will be answered at https://github.com/osm-search/Nominatim/issues/3359