| 1234567891011121314151617181920212223242526272829 |
- #!/usr/bin/python
- # 42.445512 -76.50726
- # 42.444988 -76.506852
- # 42.4444 -76.506444
- paddle = 6055
- dmmc_coord = [ [ 4226.73072, -7630.4356 ],
- [ 4226.69928, -7630.41112],
- [ 4226.664, -7630.38664] ]
- dmmc_name = [ "test route top", "test route mid", "test route bottom" ]
- print "# Paddle", paddle, "(testing)"
- print "# coodinates in concatinated degree/decimal minute format (dmmc)"
- print "#", "\t".join(["hour", "minute", "latitude", "longitude", "route", "trip", "stop", "name"])
- idx=0
- for hour in range(24):
- for minute in range(0,60,10):
- trip = int(minute/10) + 1
- for stop in range(1,4):
- v = [str(hour), str(minute+stop), str(dmmc_coord[idx][0]), str(dmmc_coord[idx][1]), str(paddle), str(trip), str(stop), dmmc_name[idx]]
- print "\t".join(v)
- idx = (idx + 1) % len(dmmc_coord)
|