]> git.openstreetmap.org Git - nominatim.git/blob - settings/import-extratags.lua
Merge pull request #2902 from lonvia/tiger-county-sanitizer
[nominatim.git] / settings / import-extratags.lua
1 require('flex-base')
2
3 RELATION_TYPES = {
4     multipolygon = relation_as_multipolygon,
5     boundary = relation_as_multipolygon,
6     waterway = relation_as_multiline
7 }
8
9 MAIN_KEYS = {
10     emergency = 'always',
11     historic = 'always',
12     military = 'always',
13     natural = 'named',
14     landuse = 'named',
15     highway = {'always',
16                street_lamp = 'named',
17                traffic_signals = 'named',
18                service = 'named',
19                cycleway = 'named',
20                path = 'named',
21                footway = 'named',
22                steps = 'named',
23                bridleway = 'named',
24                track = 'named',
25                motorway_link = 'named',
26                trunk_link = 'named',
27                primary_link = 'named',
28                secondary_link = 'named',
29                tertiary_link = 'named'},
30     railway = 'named',
31     man_made = 'always',
32     aerialway = 'always',
33     boundary = {'named',
34                 postal_code = 'named'},
35     aeroway = 'always',
36     amenity = 'always',
37     club = 'always',
38     craft = 'always',
39     leisure = 'always',
40     office = 'always',
41     mountain_pass = 'always',
42     shop = 'always',
43     tourism = 'always',
44     bridge = 'named_with_key',
45     tunnel = 'named_with_key',
46     waterway = 'named',
47     place = 'always'
48 }
49
50 MAIN_FALLBACK_KEYS = {
51     building = 'named',
52     landuse = 'named',
53     junction = 'named',
54     healthcare = 'named'
55 }
56
57
58 PRE_DELETE = tag_match{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                        tags = {emergency = {'yes', 'no', 'fire_hydrant'},
65                                historic = {'yes', 'no'},
66                                military = {'yes', 'no'},
67                                natural = {'yes', 'no', 'coastline'},
68                                highway = {'no', 'turning_circle', 'mini_roundabout',
69                                           'noexit', 'crossing', 'give_way', 'stop'},
70                                railway = {'level_crossing', 'no', 'rail'},
71                                man_made = {'survey_point', 'cutline'},
72                                aerialway = {'pylon', 'no'},
73                                aeroway = {'no'},
74                                amenity = {'no'},
75                                club = {'no'},
76                                craft = {'no'},
77                                leisure = {'no'},
78                                office = {'no'},
79                                mountain_pass = {'no'},
80                                shop = {'no'},
81                                tourism = {'yes', 'no'},
82                                bridge = {'no'},
83                                tunnel = {'no'},
84                                waterway = {'riverbank'},
85                                building = {'no'},
86                                boundary = {'place'}}
87                       }
88
89 POST_DELETE = tag_match{keys = {'tiger:*'}}
90
91 PRE_EXTRAS = tag_match{keys = {'*:prefix', '*:suffix', 'name:prefix:*', 'name:suffix:*',
92                                'name:etymology', 'name:signed', 'name:botanical',
93                                'wikidata', '*:wikidata',
94                                'addr:street:name', 'addr:street:type'}
95                       }
96
97
98 NAMES = tag_match{keys = {'name', 'name:*',
99                           'int_name', 'int_name:*',
100                           'nat_name', 'nat_name:*',
101                           'reg_name', 'reg_name:*',
102                           'loc_name', 'loc_name:*',
103                           'old_name', 'old_name:*',
104                           'alt_name', 'alt_name:*', 'alt_name_*',
105                           'official_name', 'official_name:*',
106                           'place_name', 'place_name:*',
107                           'short_name', 'short_name:*', 'brand'}}
108
109 REFS = tag_match{keys = {'ref', 'int_ref', 'nat_ref', 'reg_ref', 'loc_ref', 'old_ref',
110                          'iata', 'icao', 'pcode', 'pcode:*', 'ISO3166-2'}}
111
112 POSTCODES = tag_match{keys = {'postal_code', 'postcode', 'addr:postcode',
113                               'tiger:zip_left', 'tiger:zip_right'}}
114
115 COUNTRY_TAGS = tag_match{keys = {'country_code', 'ISO3166-1',
116                                  'addr:country_code', 'is_in:country_code',
117                                  'addr:country', 'is_in:country'}}
118
119 HOUSENAME_TAGS = tag_match{keys = {'addr:housename'}}
120
121 HOUSENUMBER_TAGS = tag_match{keys = {'addr:housenumber', 'addr:conscriptionnumber',
122                                      'addr:streetnumber'}}
123
124 INTERPOLATION_TAGS = tag_match{keys = {'addr:interpolation'}}
125
126 ADDRESS_TAGS = tag_match{keys = {'addr:*', 'is_in:*', 'tiger:county'}}
127
128 SAVE_EXTRA_MAINS = true
129