108:4b09d8a597f8 | 109:88a5110b66ba |
---|---|
34 if child.tag == 'way': | 34 if child.tag == 'way': |
35 way = parse_way(child, nodes = nodes) | 35 way = parse_way(child, nodes = nodes) |
36 if 'region' in way and 'name' in way: | 36 if 'region' in way and 'name' in way: |
37 way['priority'] = int(way.get('priority', 1)) | 37 way['priority'] = int(way.get('priority', 1)) |
38 regions[way['name']] = way | 38 regions[way['name']] = way |
39 if 'external' in way: | |
40 way['priority'] = -1 | |
39 return regions | 41 return regions |