1 local flex = require('flex-base')
6 healthcare = 'fallback',
11 street_lamp = 'named',
12 traffic_signals = 'named',
20 motorway_link = 'named',
22 primary_link = 'named',
23 secondary_link = 'named',
24 tertiary_link = 'named'},
31 water_tower = 'always',
34 lighthouse = 'always',
39 postal_code = 'always'},
44 junction = 'fallback',
47 nature_reserve = 'fallback'},
49 mountain_pass = 'always',
52 bridge = 'named_with_key',
53 tunnel = 'named_with_key',
58 flex.set_prefilters{delete_keys = {'note', 'note:*', 'source', '*source', 'attribution',
59 'comment', 'fixme', 'FIXME', 'created_by', 'NHD:*',
60 'nhd:*', 'gnis:*', 'geobase:*', 'KSJ2:*', 'yh:*',
61 'osak:*', 'naptan:*', 'CLC:*', 'import', 'it:fvg:*',
62 'type', 'lacounty:*', 'ref:ruian:*', 'building:ruian:type',
63 'ref:linz:*', 'is_in:postcode',
64 '*:prefix', '*:suffix', 'name:prefix:*', 'name:suffix:*',
65 'name:etymology', 'name:signed', 'name:botanical',
66 '*:wikidata', '*:wikipedia', 'brand:wikipedia:*',
67 'addr:street:name', 'addr:street:type'},
68 delete_tags = {emergency = {'yes', 'no', 'fire_hydrant'},
69 historic = {'yes', 'no'},
70 military = {'yes', 'no'},
71 natural = {'yes', 'no', 'coastline'},
72 highway = {'no', 'turning_circle', 'mini_roundabout',
73 'noexit', 'crossing', 'give_way', 'stop'},
74 railway = {'level_crossing', 'no', 'rail', 'switch',
75 'abandoned', 'signal', 'buffer_stop', 'razed'},
76 aerialway = {'pylon', 'no'},
78 amenity = {'no', 'parking_space', 'parking_entrance'},
83 mountain_pass = {'no'},
85 tourism = {'yes', 'no'},
88 waterway = {'riverbank'},
90 boundary = {'place', 'land_area'}},
91 extra_keys = {'wikidata', 'wikipedia', 'wikipedia:*'}
94 flex.set_name_tags{main = {'name', 'name:*',
95 'int_name', 'int_name:*',
96 'nat_name', 'nat_name:*',
97 'reg_name', 'reg_name:*',
98 'loc_name', 'loc_name:*',
99 'old_name', 'old_name:*',
100 'alt_name', 'alt_name:*', 'alt_name_*',
101 'official_name', 'official_name:*',
102 'place_name', 'place_name:*',
103 'short_name', 'short_name:*', 'brand'},
104 extra = {'ref', 'int_ref', 'nat_ref', 'reg_ref',
105 'loc_ref', 'old_ref',
106 'iata', 'icao', 'pcode', 'pcode:*', 'ISO3166-2'},
107 house = {'addr:housename'}
110 flex.set_address_tags{main = {'addr:housenumber',
111 'addr:conscriptionnumber',
112 'addr:streetnumber'},
113 extra = {'addr:*', 'is_in:*', 'tiger:county'},
114 postcode = {'postal_code', 'postcode', 'addr:postcode',
115 'tiger:zip_left', 'tiger:zip_right'},
116 country = {'country_code', 'ISO3166-1',
117 'addr:country_code', 'is_in:country_code',
118 'addr:country', 'is_in:country'},
119 interpolation = {'addr:interpolation'}
123 flex.set_unused_handling{extra_keys = {'place'}}