stands.py (399B)
1 #!/usr/bin/env python 2 3 from data.hdf5 import taxi_it 4 from visualizer import Vlist, Point 5 6 7 if __name__ == '__main__': 8 it = taxi_it('stands') 9 next(it) # Ignore the "no stand" entry 10 11 points = Vlist() 12 for (i, line) in enumerate(it): 13 points.append(Point(line['stands_latitude'], line['stands_longitude'], 'Stand (%d): %s' % (i+1, line['stands_name']))) 14 points.save('stands')