node_hierarchy/node_hierarchy.py

84 lines
2.2 KiB
Python
Raw Normal View History

2015-12-22 22:59:50 +01:00
#!/usr/bin/python
# -*- coding: utf-8 -
#Imports:
2015-12-23 14:16:18 +01:00
from domain_selector import DomainSelector
2015-12-22 22:59:50 +01:00
targets = {
2015-12-23 14:16:18 +01:00
# 'muenster' : [
# {'city' : u'Münster'},
# {'county' : u'Münster'},
# ],
2015-12-22 22:59:50 +01:00
'kreis_warendorf' : [
2015-12-23 14:16:18 +01:00
{'county' : u'Kreis Warendorf'},
2015-12-22 22:59:50 +01:00
],
'kreis_coesfeld' : [
2015-12-23 14:16:18 +01:00
{'county' : u'Kreis Coesfeld'},
2015-12-22 22:59:50 +01:00
],
'kreis_steinfurt_west' : [
{'town' : u'48565'},
{'village' : u'Wettringen'},
{'town' : u'Ochtrup'},
{'village' : u'Metelen'},
{'town' : u'Horstmar'},
{'village' : u'Laer'},
{'village' : u'Nordwalde'},
2015-12-23 14:16:18 +01:00
{'village' : u'Altenberge'},
2015-12-22 22:59:50 +01:00
],
'kreis_steinfurt_ost' : [
{'town' : u'Emsdetten'},
{'town' : u'Neuenkirchen'},
{'town' : u'Rheine'},
{'town' : u'Greven'},
{'village' : u'Ladbergen'},
{'town' : u'Lengerich'},
{'town' : u'Tecklenburg'},
{'village' : u'Lienen'},
2015-12-23 14:16:18 +01:00
],
'muenster_stadt' : [
{'city_district' : u'Münster-Mitte'},
{'city_district' : u'Münster-Nord'},
{'city_district' : u'Münster-Ost'},
{'suburb' : u'Berg Fidel'},
{'suburb' : u'Gremmendorf'},
{'suburb' : u'Mecklenbeck'},
{'suburb' : u'Gievenbeck'},
{'suburb' : u'Nienberge'},
{'suburb' : u'Roxel'},
{'suburb' : u'Sentruper Höhe'},
],
'muenster_sued' : [
{'suburb' : u'Amelsbüren'},
{'suburb' : u'Hiltrup'},
{'suburb' : u'Albachten'},
],
'kreis_borken' : [
{'town' : u'Ahaus'},
{'town' : u'Bocholt'},
{'town' : u'Borken'},
{'town' : u'Gescher'},
{'village' : u'Heek'},
{'town' : u'Heiden'},
{'town' : u'Isselburg'},
{'village' : u'Legden'},
{'town' : u'Raesfeld'},
{'town' : u'Reken'},
{'town' : u'Rhede'},
{'village' : u'Schöppingen'},
{'town' : u'Stadtlohn'},
{'village' : u'Südlohn'},
{'town' : u'Velen'},
{'town' : u'Vreden'},
],
'sassenberg' : [
{'town' : u'Sassenberg'},
],
'telgte' : [
{'town' : u'Telgte'},
],
'warendorf_stadt' : [
{'town' : u'Warendorf'},
2015-12-22 22:59:50 +01:00
]
}
2015-12-23 22:51:35 +01:00
#ds = DomainSelector(nodesFile = 'nodes.json', graphFile = 'graph.json', printStatus = True, dataPath = '../domaenensplit_webserver_config/', targets = targets)
ds = DomainSelector(nodesFile = 'https://freifunk-muensterland.de/map/data/nodes.json', graphFile = 'https://freifunk-muensterland.de/map/data/graph.json', printStatus = True, dataPath = '../domaenensplit_webserver_config/', targets = targets, branch = 'stable')