update hood info
This commit is contained in:
parent
3d15bed42e
commit
4b693bdd49
28
db/hoods.py
28
db/hoods.py
|
@ -9,47 +9,61 @@ db = client.freifunk
|
|||
CONFIG = {"default_hood_id": 1}
|
||||
|
||||
"""
|
||||
# create db indexes
|
||||
db.hoods.create_index([("position", "2dsphere")])
|
||||
db.hoods.insert_many([
|
||||
{
|
||||
"keyxchange_id": 1,
|
||||
"name": "transition",
|
||||
"name": "default",
|
||||
"net": "10.50.16.0/20"
|
||||
},
|
||||
{
|
||||
"keyxchange_id": 2,
|
||||
"name": "fuerth",
|
||||
"net": "10.50.32.0/21",
|
||||
"position": {"lat": 49.478330, "lng": 10.990270}
|
||||
"position": {"type": "Point", "coordinates": [10.966, 49.4814]}
|
||||
},
|
||||
{
|
||||
"keyxchange_id": 3,
|
||||
"name": "nuernberg",
|
||||
"net": "10.50.40.0/21",
|
||||
"position": {"lat": 49.448856, "lng": 11.082108}
|
||||
"position": {"type": "Point", "coordinates": [11.05, 49.444]}
|
||||
},
|
||||
{
|
||||
"keyxchange_id": 4,
|
||||
"name": "ansbach",
|
||||
"net": "10.50.48.0/21",
|
||||
"position": {"lat": 49.300833, "lng": 10.571667}
|
||||
"position": {"type": "Point", "coordinates": [10.571667, 49.300833]}
|
||||
},
|
||||
{
|
||||
"keyxchange_id": 5,
|
||||
"name": "haßberge",
|
||||
"net": "10.50.56.0/21",
|
||||
"position": {"lat": 50.093555, "lng": 10.568013}
|
||||
"position": {"type": "Point", "coordinates": [10.568013390003, 50.093555895082]}
|
||||
},
|
||||
{
|
||||
"keyxchange_id": 6,
|
||||
"name": "erlangen",
|
||||
"net": "10.50.64.0/21",
|
||||
"position": {"lat": 49.600598, "lng": 11.001922}
|
||||
"position": {"type": "Point", "coordinates": [11.0019221, 49.6005981]}
|
||||
},
|
||||
{
|
||||
"keyxchange_id": 6,
|
||||
"name": "wuerzburg",
|
||||
"net": "10.50.72.0/21",
|
||||
"position": {"lat": 49.796880, "lng": 9.934890}
|
||||
"position": {"type": "Point", "coordinates": [9.93489, 49.79688]}
|
||||
},
|
||||
{
|
||||
"keyxchange_id": 7,
|
||||
"name": "bgl",
|
||||
"net": "10.50.80.0/21",
|
||||
"position": {"type": "Point", "coordinates": [12.8825, 47.7314]}
|
||||
},
|
||||
{
|
||||
"keyxchange_id": 8,
|
||||
"name": "HassbergeSued",
|
||||
"net": "10.50.60.0/22",
|
||||
"position": {"type": "Point", "coordinates": [10.568013390003, 50.08]}
|
||||
}])
|
||||
"""
|
||||
|
||||
|
|
Loading…
Reference in New Issue