]> git.openstreetmap.org Git - nominatim.git/blob - lib-lua/themes/nominatim/topics/full.lua
Merge remote-tracking branch 'upstream/master'
[nominatim.git] / lib-lua / themes / nominatim / topics / full.lua
1 local _, flex, cfg = ...
2
3 local group
4 if cfg.with_extratags then
5     group = 'extra'
6 else
7     group = 'delete'
8 end
9
10 flex.set_main_tags('all_boundaries')
11 flex.modify_main_tags('natural')
12 flex.modify_main_tags('street/' .. (cfg.street_theme or 'default'))
13 flex.modify_main_tags('poi/' .. group)
14
15 flex.set_name_tags('core')
16 flex.modify_name_tags('address')
17 flex.modify_name_tags('poi')
18
19 flex.set_address_tags('core')
20 flex.modify_address_tags('houses')
21
22 flex.ignore_keys('metatags')
23 flex.add_for_extratags('required')
24
25 if cfg.with_extratags then
26     flex.set_unused_handling{delete_keys = {'tiger:*'}}
27     flex.add_for_extratags('name')
28     flex.add_for_extratags('address')
29 else
30     flex.ignore_keys('name')
31     flex.ignore_keys('address')
32 end