NOTICE: help.openstreetmap.org is no longer in use from 1st March 2024. Please use the OpenStreetMap Community Forum

Hi,

I would like to limit the list of OSM tags my Nominatim server makes use of. I found:

  • The file phrase_settings.php with a blacklist and a whitelist but the default values don't look as if they would be valid.
  • The file partitionedtags.def but it seems to be incomplete. E.g. boundary:postal_code is not in there but AFAIK Nominatim uses it.

I couldn't find any documentation. Anyone knows?

Best, Helge

asked 24 Sep '15, 16:34

Helge%20Fahrnberger's gravatar image

Helge Fahrnb...
111239
accept rate: 100%


There is no simple configuration file for the tag selection. Tag processing is (still) hard-coded, so you have to hack a bit of code to achieve what you want.

The main tag filtering and categorizing happens in osm2pgsql/output-gazetteer.cpp. In particular, you should have a look at the function place_tag_processor::process_tags(). This function is called for each OSM object and goes through its list of tags. You can simply comment out all the tags you are not interested in.

permanent link

answered 24 Sep '15, 20:52

lonvia's gravatar image

lonvia
6.2k25789
accept rate: 40%

That's great, thank you! So the two settings files are to be ignored, right?

(25 Sep '15, 11:07) Helge Fahrnb...
2

Yes, the files can be ignored. phrase_settings.php is used only when importing special phrases from the Wiki and partitionedtags.def isn't used at all anymore.

(25 Sep '15, 12:54) lonvia
Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Question tags:

×689

question asked: 24 Sep '15, 16:34

question was seen: 1,945 times

last updated: 25 Sep '15, 12:54

NOTICE: help.openstreetmap.org is no longer in use from 1st March 2024. Please use the OpenStreetMap Community Forum