diff -r 69cc75506d4f -r f89504285945 compute-regions.py --- a/compute-regions.py Tue Jun 20 10:32:50 2017 +0300 +++ b/compute-regions.py Wed Jun 21 18:24:34 2017 +0300 @@ -12,10 +12,10 @@ bus_stops = {} with open('gtfs/stops.txt') as file: - for rivi in lue_csv(file): - sijainti = Sijainti(float(rivi['stop_lat']), float(rivi['stop_lon'])) - tunniste = rivi['stop_id'] - bus_stops[tunniste] = sijainti + for row in read_csv(file): + location = Sijainti(float(row['stop_lat']), float(row['stop_lon'])) + reference = row['stop_id'] + bus_stops[reference] = location district_shapes = [] for polygon in data[1].splitlines():