diff --git a/d3mapbuilder.py b/d3mapbuilder.py index a60665c..fe354b4 100644 --- a/d3mapbuilder.py +++ b/d3mapbuilder.py @@ -10,7 +10,8 @@ class D3MapBuilder: nodes = self._db.get_nodes() output['nodes'] = [{'group': x.group, 'name': x.name, 'id': x.id, - 'macs': ', '.join(x.macs) + 'macs': ', '.join(x.macs), + 'geo': x.gps.split(" ") if x.gps else None } for x in nodes if x.online] output['links'] = [{'source': x.pair[0], 'target': x.pair[1], 'distance': x.distance,