| 12345678910111213141516171819202122232425262728293031323334 |
- #!/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"])
- even_odd = 0
- base_route = 1000
- idx=0
- for hour in range(24):
- for minute in range(0,60,10):
- trip = int(minute/10) + 1
- route = int(base_route + (even_odd*10))
- even_odd = 1 - even_odd
- for stop in range(1,4):
- v = [str(hour), str(minute+stop), str(dmmc_coord[idx][0]), str(dmmc_coord[idx][1]), str(route), str(trip), str(stop), dmmc_name[idx]]
- print "\t".join(v)
- idx = (idx + 1) % len(dmmc_coord)
|