1 local flex = require('flex-base')
6 healthcare = 'fallback',
12 street_lamp = 'named',
13 traffic_signals = 'named',
21 motorway_link = 'named',
23 primary_link = 'named',
24 secondary_link = 'named',
25 tertiary_link = 'named'},
30 postal_code = 'named'},
35 junction = 'fallback',
39 mountain_pass = 'always',
42 bridge = 'named_with_key',
43 tunnel = 'named_with_key',
48 flex.set_prefilters{delete_keys = {'note', 'note:*', 'source', '*source', 'attribution',
49 'comment', 'fixme', 'FIXME', 'created_by', 'NHD:*',
50 'nhd:*', 'gnis:*', 'geobase:*', 'KSJ2:*', 'yh:*',
51 'osak:*', 'naptan:*', 'CLC:*', 'import', 'it:fvg:*',
52 'type', 'lacounty:*', 'ref:ruian:*', 'building:ruian:type',
53 'ref:linz:*', 'is_in:postcode'},
54 delete_tags = {emergency = {'yes', 'no', 'fire_hydrant'},
55 historic = {'yes', 'no'},
56 military = {'yes', 'no'},
57 natural = {'yes', 'no', 'coastline'},
58 highway = {'no', 'turning_circle', 'mini_roundabout',
59 'noexit', 'crossing', 'give_way', 'stop'},
60 railway = {'level_crossing', 'no', 'rail'},
61 man_made = {'survey_point', 'cutline'},
62 aerialway = {'pylon', 'no'},
69 mountain_pass = {'no'},
71 tourism = {'yes', 'no'},
74 waterway = {'riverbank'},
76 boundary = {'place'}},
77 extra_keys = {'*:prefix', '*:suffix', 'name:prefix:*', 'name:suffix:*',
78 'name:etymology', 'name:signed', 'name:botanical',
79 'wikidata', '*:wikidata',
80 'addr:street:name', 'addr:street:type'}
83 flex.set_name_tags{main = {'name', 'name:*',
84 'int_name', 'int_name:*',
85 'nat_name', 'nat_name:*',
86 'reg_name', 'reg_name:*',
87 'loc_name', 'loc_name:*',
88 'old_name', 'old_name:*',
89 'alt_name', 'alt_name:*', 'alt_name_*',
90 'official_name', 'official_name:*',
91 'place_name', 'place_name:*',
92 'short_name', 'short_name:*', 'brand'},
93 extra = {'ref', 'int_ref', 'nat_ref', 'reg_ref',
95 'iata', 'icao', 'pcode', 'pcode:*', 'ISO3166-2'},
96 house = {'addr:housename'}
99 flex.set_address_tags{main = {'addr:housenumber',
100 'addr:conscriptionnumber',
101 'addr:streetnumber'},
102 extra = {'addr:*', 'is_in:*', 'tiger:county'},
103 postcode = {'postal_code', 'postcode', 'addr:postcode',
104 'tiger:zip_left', 'tiger:zip_right'},
105 country = {'country_code', 'ISO3166-1',
106 'addr:country_code', 'is_in:country_code',
107 'addr:country', 'is_in:country'},
108 interpolation = {'addr:interpolation'}
112 flex.set_unused_handling{delete_keys = {'tiger:*'}}