]> git.openstreetmap.org Git - nominatim.git/commit
Push secondary main tags into extratags
authorpawank925 <ogpawankalyank@gmail.com>
Tue, 8 Sep 2026 11:17:08 +0000 (16:47 +0530)
committerpawank925 <ogpawankalyank@gmail.com>
Tue, 8 Sep 2026 11:17:08 +0000 (16:47 +0530)
commitc7d4075c3391dface6b700c474f72bee72ef6b49
tree98f5c29a903ee1ab0903fa9ffe87a2dc585a9797
parentc12e92c0bb88d1fe632f4a4148e6d0ad4a751f12
Push secondary main tags into extratags

When an object carries several main tags, Nominatim converts all of
them into categories but only places a single one into class/type.
The remaining main tags were dropped entirely, so they were no longer
accessible in the results (categories are not returned).

Keep secondary main tags in extratags instead of removing them from
the extratags set. Only the winning main tag that became class/type is
excluded from extratags. Because extratags are only collected when the
Lua style is configured to keep extra tags, the behaviour in the
default import (extra tags disabled) is unchanged.

Adds a BDD test covering secondary main tags being kept in extratags.
lib-lua/themes/nominatim/init.lua
test/bdd/features/osm2pgsql/import/custom_style.feature