def main(): sel_date = dt.datetime.strptime(sys.argv[1], "%Y-%m-%d").date() services = unmarshal(sys.stdin) print >> sys.stderr, len(services) time_intervals = gen_time_intervals(services, sel_date) ips = gen_interval_pair_stoppings(services, sel_date, time_intervals) kml_pairs(ips, sys.stdout)
def main(): sel_date = dt.datetime.strptime(sys.argv[1], "%Y-%m-%d").date() services = unmarshal(sys.stdin) print >> sys.stderr, len(services) print >> sys.stderr, "Generating JSON" json_stoppings(services, sys.stdout, sel_date)
from storage import unmarshal; import sys; unmarshal(sys.stdin)
def main(): services = unmarshal(sys.stdin) print >>sys.stderr, len(services) pairs = gen_pairs(services) kml = kml_pairs(pairs) sys.stdout.write(kml)
def main(): services = unmarshal(sys.stdin) print >> sys.stderr, len(services) stations = gen_points(services) kml = kml_points(stations) sys.stdout.write(kml)