1 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',
49 flex.PRE_DELETE = flex.tag_match{keys = {'note', 'note:*', 'source', 'source*', 'attribution',
50 'comment', 'fixme', 'FIXME', 'created_by', 'NHD:*',
51 'nhd:*', 'gnis:*', 'geobase:*', 'KSJ2:*', 'yh:*',
52 'osak:*', 'naptan:*', 'CLC:*', 'import', 'it:fvg:*',
53 'type', 'lacounty:*', 'ref:ruian:*', 'building:ruian:type',
54 'ref:linz:*', 'is_in:postcode'},
55 tags = {emergency = {'yes', 'no', 'fire_hydrant'},
56 historic = {'yes', 'no'},
57 military = {'yes', 'no'},
58 natural = {'yes', 'no', 'coastline'},
59 highway = {'no', 'turning_circle', 'mini_roundabout',
60 'noexit', 'crossing', 'give_way', 'stop'},
61 railway = {'level_crossing', 'no', 'rail'},
62 man_made = {'survey_point', 'cutline'},
63 aerialway = {'pylon', 'no'},
70 mountain_pass = {'no'},
72 tourism = {'yes', 'no'},
75 waterway = {'riverbank'},
80 flex.POST_DELETE = flex.tag_match{keys = {'tiger:*'}}
82 flex.PRE_EXTRAS = flex.tag_match{keys = {'*:prefix', '*:suffix', 'name:prefix:*', 'name:suffix:*',
83 'name:etymology', 'name:signed', 'name:botanical',
84 'wikidata', '*:wikidata',
85 'addr:street:name', 'addr:street:type'}
88 flex.NAMES = flex.tag_group{main = {'name', 'name:*',
89 'int_name', 'int_name:*',
90 'nat_name', 'nat_name:*',
91 'reg_name', 'reg_name:*',
92 'loc_name', 'loc_name:*',
93 'old_name', 'old_name:*',
94 'alt_name', 'alt_name:*', 'alt_name_*',
95 'official_name', 'official_name:*',
96 'place_name', 'place_name:*',
97 'short_name', 'short_name:*', 'brand'},
98 extra = {'ref', 'int_ref', 'nat_ref', 'reg_ref',
100 'iata', 'icao', 'pcode', 'pcode:*', 'ISO3166-2'},
101 house = {'addr:housename'}
104 flex.ADDRESS_TAGS = flex.tag_group{main = {'addr:housenumber',
105 'addr:conscriptionnumber',
106 'addr:streetnumber'},
107 extra = {'addr:*', 'is_in:*', 'tiger:county'},
108 postcode = {'postal_code', 'postcode', 'addr:postcode',
109 'tiger:zip_left', 'tiger:zip_right'},
110 country = {'country_code', 'ISO3166-1',
111 'addr:country_code', 'is_in:country_code',
112 'addr:country', 'is_in:country'},
113 interpolation = {'addr:interpolation'}
116 flex.SAVE_EXTRA_MAINS = true