1 -- Defines defaults used in the topic definitions.
9 module.MAIN_TAGS.admin = {
10 boundary = {administrative = 'named'},
11 landuse = {residential = 'fallback',
13 farmyard = 'fallback',
14 industrial = 'fallback',
15 commercial = 'fallback',
16 allotments = 'fallback',
18 place = {county = 'always',
20 municipality = 'always',
28 subdivision = 'always',
29 allotments = 'always',
30 neighbourhood = 'always',
32 isolated_dwelling = 'always',
34 city_block = 'always',
38 module.MAIN_TAGS.all_boundaries = {
42 postal_code = 'always'},
47 module.MAIN_TAGS.natural = {
49 riverbank = 'delete'},
55 mountain_pass = {'always',
59 module.MAIN_TAGS_POIS = function (group)
60 group = group or 'delete'
62 aerialway = {'always',
69 parking_space = group,
70 parking_entrance = group,
71 waste_disposal = group,
72 hunting_stand = group},
73 building = {'fallback',
75 bridge = {'named_with_key',
81 emergency = {'always',
84 fire_hydrant = group},
85 healthcare = {'fallback',
90 turning_circle = group,
91 mini_roundabout = group,
97 passing_place = group,
98 street_lamp = 'named',
99 traffic_signals = 'named'},
100 historic = {'always',
103 junction = {'fallback',
106 nature_reserve = 'fallback',
108 man_made = {pier = 'always',
112 water_tower = 'always',
115 lighthouse = 'always',
116 watermill = 'always',
118 military = {'always',
129 level_crossing = group,
132 buffer_stop = group},
138 tunnel = {'named_with_key',
142 module.MAIN_TAGS_STREETS = {}
144 module.MAIN_TAGS_STREETS.default = {
145 place = {square = 'always'},
146 highway = {motorway = 'always',
149 secondary = 'always',
151 unclassified = 'always',
152 residential = 'always',
154 living_street = 'always',
155 pedestrian = 'always',
163 motorway_link = 'named',
164 trunk_link = 'named',
165 primary_link = 'named',
166 secondary_link = 'named',
167 tertiary_link = 'named'}
170 module.MAIN_TAGS_STREETS.car = {
171 place = {square = 'always'},
172 highway = {motorway = 'always',
175 secondary = 'always',
177 unclassified = 'always',
178 residential = 'always',
180 living_street = 'always',
183 motorway_link = 'always',
184 trunk_link = 'always',
185 primary_link = 'always',
186 secondary_link = 'always',
187 tertiary_link = 'always'}
190 module.MAIN_TAGS_STREETS.all = {
191 place = {square = 'always'},
192 highway = {motorway = 'always',
195 secondary = 'always',
197 unclassified = 'always',
198 residential = 'always',
200 living_street = 'always',
201 pedestrian = 'always',
207 bridleway = 'always',
209 motorway_link = 'always',
210 trunk_link = 'always',
211 primary_link = 'always',
212 secondary_link = 'always',
213 tertiary_link = 'always'}
219 module.NAME_TAGS = {}
221 module.NAME_TAGS.core = {main = {'name', 'name:*',
222 'int_name', 'int_name:*',
223 'nat_name', 'nat_name:*',
224 'reg_name', 'reg_name:*',
225 'loc_name', 'loc_name:*',
226 'old_name', 'old_name:*',
227 'alt_name', 'alt_name:*', 'alt_name_*',
228 'official_name', 'official_name:*',
229 'place_name', 'place_name:*',
230 'short_name', 'short_name:*'},
231 extra = {'ref', 'int_ref', 'nat_ref', 'reg_ref',
232 'loc_ref', 'old_ref', 'ISO3166-2'}
234 module.NAME_TAGS.address = {house = {'addr:housename'}}
235 module.NAME_TAGS.poi = {extra = {'ref', 'int_ref', 'nat_ref', 'reg_ref',
236 'loc_ref', 'old_ref',
242 module.ADDRESS_TAGS = {}
244 module.ADDRESS_TAGS.core = { extra = {'addr:*', 'is_in:*', 'tiger:county'},
245 postcode = {'postal_code', 'postcode', 'addr:postcode',
246 'tiger:zip_left', 'tiger:zip_right'},
247 country = {'country_code', 'ISO3166-1',
248 'addr:country_code', 'is_in:country_code',
249 'addr:country', 'is_in:country'}
252 module.ADDRESS_TAGS.houses = { main = {'addr:housenumber',
253 'addr:conscriptionnumber',
254 'addr:streetnumber'},
255 interpolation = {'addr:interpolation'}
258 -- Ignored tags (prefiltered away)
260 module.IGNORE_KEYS = {}
262 module.IGNORE_KEYS.metatags = {'note', 'note:*', 'source', 'source:*', '*source',
263 'attribution', 'comment', 'fixme', 'created_by',
264 'tiger:cfcc', 'tiger:reviewed', 'nysgissam:*',
265 'NHD:*', 'nhd:*', 'gnis:*', 'geobase:*', 'yh:*',
266 'osak:*', 'naptan:*', 'CLC:*', 'import', 'it:fvg:*',
267 'lacounty:*', 'ref:linz:*',
268 'ref:bygningsnr', 'ref:ruian:*', 'building:ruian:type',
271 module.IGNORE_KEYS.name = {'*:prefix', '*:suffix', 'name:prefix:*', 'name:suffix:*',
272 'name:etymology', 'name:signed', 'name:botanical'}
273 module.IGNORE_KEYS.address = {'addr:street:*', 'addr:TW:dataset'}
275 -- Extra tags (prefiltered away)
277 module.EXTRATAGS = {}
279 module.EXTRATAGS.required = {'wikipedia', 'wikipedia:*', 'wikidata', 'capital'}