]> git.openstreetmap.org Git - nominatim.git/blob - settings/import-extratags.lua
Merge remote-tracking branch 'upstream/master'
[nominatim.git] / settings / import-extratags.lua
1 local flex = require('flex-base')
2
3 flex.set_main_tags{
4     building = 'fallback',
5     emergency = 'always',
6     healthcare = 'fallback',
7     historic = 'always',
8     military = 'always',
9     natural = 'named',
10     highway = {'always',
11                street_lamp = 'named',
12                traffic_signals = 'named',
13                service = 'named',
14                cycleway = 'named',
15                path = 'named',
16                footway = 'named',
17                steps = 'named',
18                bridleway = 'named',
19                track = 'named',
20                motorway_link = 'named',
21                trunk_link = 'named',
22                primary_link = 'named',
23                secondary_link = 'named',
24                tertiary_link = 'named'},
25     railway = 'named',
26     man_made = 'always',
27     aerialway = 'always',
28     boundary = {'named',
29                 postal_code = 'always'},
30     aeroway = 'always',
31     amenity = 'always',
32     club = 'always',
33     craft = 'always',
34     junction = 'fallback',
35     landuse = 'fallback',
36     leisure = {'always',
37                nature_reserve = 'fallback'},
38     office = 'always',
39     mountain_pass = 'always',
40     shop = 'always',
41     tourism = 'always',
42     bridge = 'named_with_key',
43     tunnel = 'named_with_key',
44     waterway = 'named',
45     place = 'always'
46 }
47
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', 'switch',
61                                               'abandoned', 'signal', 'buffer_stop', 'razed'},
62                                    man_made = {'survey_point', 'cutline'},
63                                    aerialway = {'pylon', 'no'},
64                                    aeroway = {'no'},
65                                    amenity = {'no', 'parking_space', 'parking_entrance'},
66                                    club = {'no'},
67                                    craft = {'no'},
68                                    leisure = {'no'},
69                                    office = {'no'},
70                                    mountain_pass = {'no'},
71                                    shop = {'no'},
72                                    tourism = {'yes', 'no'},
73                                    bridge = {'no'},
74                                    tunnel = {'no'},
75                                    waterway = {'riverbank'},
76                                    building = {'no'},
77                                    boundary = {'place', 'land_area'}},
78                     extra_keys = {'*:prefix', '*:suffix', 'name:prefix:*', 'name:suffix:*',
79                                'name:etymology', 'name:signed', 'name:botanical',
80                                'wikidata', '*:wikidata',
81                                '*:wikipedia', 'brand:wikipedia:*',
82                                'addr:street:name', 'addr:street:type'}
83                    }
84
85 flex.set_name_tags{main = {'name', 'name:*',
86                           'int_name', 'int_name:*',
87                           'nat_name', 'nat_name:*',
88                           'reg_name', 'reg_name:*',
89                           'loc_name', 'loc_name:*',
90                           'old_name', 'old_name:*',
91                           'alt_name', 'alt_name:*', 'alt_name_*',
92                           'official_name', 'official_name:*',
93                           'place_name', 'place_name:*',
94                           'short_name', 'short_name:*', 'brand'},
95                    extra = {'ref', 'int_ref', 'nat_ref', 'reg_ref',
96                             'loc_ref', 'old_ref',
97                             'iata', 'icao', 'pcode', 'pcode:*', 'ISO3166-2'},
98                    house = {'addr:housename'}
99                   }
100
101 flex.set_address_tags{main = {'addr:housenumber',
102                               'addr:conscriptionnumber',
103                               'addr:streetnumber'},
104                       extra = {'addr:*', 'is_in:*', 'tiger:county'},
105                       postcode = {'postal_code', 'postcode', 'addr:postcode',
106                                   'tiger:zip_left', 'tiger:zip_right'},
107                       country = {'country_code', 'ISO3166-1',
108                                  'addr:country_code', 'is_in:country_code',
109                                  'addr:country', 'is_in:country'},
110                       interpolation = {'addr:interpolation'}
111                      }
112
113
114 flex.set_unused_handling{delete_keys = {'tiger:*'}}
115
116 return flex