Beispiel #1
0
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)
Beispiel #2
0
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)
Beispiel #3
0
from storage import unmarshal;
import sys;
unmarshal(sys.stdin)
Beispiel #4
0
def main():
    services = unmarshal(sys.stdin)
    print >>sys.stderr, len(services)
    pairs = gen_pairs(services)
    kml = kml_pairs(pairs)
    sys.stdout.write(kml)
Beispiel #5
0
def main():
    services = unmarshal(sys.stdin)
    print >> sys.stderr, len(services)
    stations = gen_points(services)
    kml = kml_points(stations)
    sys.stdout.write(kml)