]> git.openstreetmap.org Git - nominatim.git/blob - lib-lua/themes/nominatim/topics/street.lua
convert import styles to themepark
[nominatim.git] / lib-lua / themes / nominatim / topics / street.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
9 flex.set_address_tags('core')
10 flex.set_postcode_fallback(false)
11
12 flex.ignore_keys('metatags')
13 flex.add_for_extratags('required')
14
15 if cfg.with_extratags then
16     flex.set_unused_handling{delete_keys = {'tiger:*'}}
17     flex.add_for_extratags('name')
18     flex.add_for_extratags('address')
19 else
20     flex.ignore_keys('name')
21     flex.ignore_keys('address')
22 end