From 78e8d4f6ff9c7ec1dbda566211a050b9474a0d8d Mon Sep 17 00:00:00 2001 From: Nils Schneider Date: Thu, 17 Jan 2013 22:13:20 +0100 Subject: [PATCH] output geo as floats, not strings --- d3mapbuilder.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/d3mapbuilder.py b/d3mapbuilder.py index eec5403..35678fd 100644 --- a/d3mapbuilder.py +++ b/d3mapbuilder.py @@ -11,7 +11,7 @@ class D3MapBuilder: output['nodes'] = [{'name': x.name, 'id': x.id, 'macs': ', '.join(x.macs), - 'geo': x.gps.split(" ") if x.gps else None, + 'geo': [float(x) for x in x.gps.split(" ")] if x.gps else None, 'flags': x.flags } for x in nodes]