From 1eca8867751df644a62752fbbfbc6a6de849de74 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=89tienne=20Simon?= Date: Mon, 11 May 2015 20:00:04 -0400 Subject: Add visualizer. Lasciate ogni speranza voi ch'entrate: I am the bone of my javascript DOM is my body and JQuery is my blood I have created over a thousand lines Unknown to death Nor known to life Have withstood pain to create many functions Yet those hands shall never type anything So, as I pray, Unlimited Openlayers Works --- visualizer/extractor/test_positions.py | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100755 visualizer/extractor/test_positions.py (limited to 'visualizer/extractor/test_positions.py') diff --git a/visualizer/extractor/test_positions.py b/visualizer/extractor/test_positions.py new file mode 100755 index 0000000..a84d2ba --- /dev/null +++ b/visualizer/extractor/test_positions.py @@ -0,0 +1,12 @@ +#!/usr/bin/env python + +from data.hdf5 import taxi_it +from visualizer import Vlist, Point + + +if __name__ == '__main__': + points = Vlist(heatmap=True) + for line in taxi_it('test'): + for (lat, lon) in zip(line['latitude'], line['longitude']): + points.append(Point(lat, lon)) + points.save('test positions') -- cgit v1.2.3