]> git.openstreetmap.org Git - nominatim.git/blob - settings/import-full.lua
switch instruction to use wikimedia CSV file
[nominatim.git] / settings / import-full.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 = {'none',
27                 pier = 'always',
28                 tower = 'always',
29                 bridge = 'always',
30                 works = 'named',
31                 water_tower = 'always',
32                 dyke = 'named',
33                 adit = 'named',
34                 lighthouse = 'always',
35                 watermill = 'always',
36                 tunnel = 'always'},
37     aerialway = 'always',
38     boundary = {'named',
39                 postal_code = 'always'},
40     aeroway = 'always',
41     amenity = 'always',
42     club = 'always',
43     craft = 'always',
44     junction = 'fallback',
45     landuse = 'fallback',
46     leisure = {'always',
47                nature_reserve = 'fallback'},
48     office = 'always',
49     mountain_pass = 'always',
50     shop = 'always',
51     tourism = 'always',
52     bridge = 'named_with_key',
53     tunnel = 'named_with_key',
54     waterway = 'named',
55     place = 'always'
56 }
57
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'},
77                                    aeroway = {'no'},
78                                    amenity = {'no', 'parking_space', 'parking_entrance',
79                                               'waste_disposal', 'hunting_stand'},
80                                    club = {'no'},
81                                    craft = {'no'},
82                                    leisure = {'no'},
83                                    office = {'no'},
84                                    mountain_pass = {'no'},
85                                    shop = {'no'},
86                                    tourism = {'yes', 'no'},
87                                    bridge = {'no'},
88                                    tunnel = {'no'},
89                                    waterway = {'riverbank'},
90                                    building = {'no'},
91                                    boundary = {'place', 'land_area'}},
92                     extra_keys = {'wikidata', 'wikipedia', 'wikipedia:*'}
93                    }
94
95 flex.set_name_tags{main = {'name', 'name:*',
96                           'int_name', 'int_name:*',
97                           'nat_name', 'nat_name:*',
98                           'reg_name', 'reg_name:*',
99                           'loc_name', 'loc_name:*',
100                           'old_name', 'old_name:*',
101                           'alt_name', 'alt_name:*', 'alt_name_*',
102                           'official_name', 'official_name:*',
103                           'place_name', 'place_name:*',
104                           'short_name', 'short_name:*', 'brand'},
105                    extra = {'ref', 'int_ref', 'nat_ref', 'reg_ref',
106                             'loc_ref', 'old_ref',
107                             'iata', 'icao', 'pcode', 'pcode:*', 'ISO3166-2'},
108                    house = {'addr:housename'}
109                   }
110
111 flex.set_address_tags{main = {'addr:housenumber',
112                               'addr:conscriptionnumber',
113                               'addr:streetnumber'},
114                       extra = {'addr:*', 'is_in:*', 'tiger:county'},
115                       postcode = {'postal_code', 'postcode', 'addr:postcode',
116                                   'tiger:zip_left', 'tiger:zip_right'},
117                       country = {'country_code', 'ISO3166-1',
118                                  'addr:country_code', 'is_in:country_code',
119                                  'addr:country', 'is_in:country'},
120                       interpolation = {'addr:interpolation'}
121                      }
122
123
124 flex.set_unused_handling{extra_keys = {'place'}}
125
126 return flex