]> git.openstreetmap.org Git - nominatim.git/blob - lib-lua/themes/nominatim/topics/address.lua
convert import styles to themepark
[nominatim.git] / lib-lua / themes / nominatim / topics / address.lua
1 local _, flex, cfg = ...
2
3 flex.set_main_tags('admin')
4 flex.modify_main_tags('street/' .. (cfg.street_theme or 'default'))
5 flex.modify_main_tags{boundary = {postal_code = 'always'}}
6
7 flex.set_name_tags('core')
8 flex.modify_name_tags('address')
9
10 flex.set_address_tags('core')
11 flex.modify_address_tags('houses')
12
13 flex.ignore_keys('metatags')
14 flex.add_for_extratags('required')
15
16 if cfg.with_extratags then
17     flex.set_unused_handling{delete_keys = {'tiger:*'}}
18     flex.add_for_extratags('name')
19     flex.add_for_extratags('address')
20 else
21     flex.ignore_keys('name')
22     flex.ignore_keys('address')
23 end