aboutsummaryrefslogtreecommitdiff
path: root/visualizer/extractor/stands.py
diff options
context:
space:
mode:
Diffstat (limited to 'visualizer/extractor/stands.py')
-rwxr-xr-xvisualizer/extractor/stands.py14
1 files changed, 14 insertions, 0 deletions
diff --git a/visualizer/extractor/stands.py b/visualizer/extractor/stands.py
new file mode 100755
index 0000000..9224143
--- /dev/null
+++ b/visualizer/extractor/stands.py
@@ -0,0 +1,14 @@
+#!/usr/bin/env python
+
+from data.hdf5 import taxi_it
+from visualizer import Vlist, Point
+
+
+if __name__ == '__main__':
+ it = taxi_it('stands')
+ next(it) # Ignore the "no stand" entry
+
+ points = Vlist()
+ for (i, line) in enumerate(it):
+ points.append(Point(line['stands_latitude'], line['stands_longitude'], 'Stand (%d): %s' % (i+1, line['stands_name'])))
+ points.save('stands')