Elliot Hallmark  committed f366a71


  • Participants
  • Parent commits d5f04e3

Comments (0)

Files changed (1)


 from WhereWeMeet import *
+import pygmaps
 if __name__ == '__main__':
     #gen a map of travel times for source. 
     #run this once per area you are analyzing.  You can add to this data set whenever
     #generate grid of lats and longs for the working area
-    gen_grid_file(ll,ur,divisions=40)
+    #gen_grid_file(ll,ur,divisions=40)
     #generate traveling times* (time intensive)
     #  *for addresses defined in ./data/_address_list.csv
     #if user was already processed, they wont be processed again when this is run
     address_file = 'data/_address_list.csv'
-    process_users(address_file, output_path ="data/")
+    #process_users(address_file, output_path ="data/")
     #calculate total driving time of all users to each point on grid
     #a different function could weight users differently in making this map
-    sum_files(source_path="data/",save_file='_TKandL.csv')
+    sum_files(source_path="data/",save_file='_sumfile.csv')
     #calculate contour data from csv file
-    levels,colors,legend = get_contour_paths('data/_TKandL.csv',n=20)
+    levels,colors,legend = get_contour_paths('data/_sumfile.csv',n=20)
     #set up map
     mymap = pygmaps.maps(center[0], center[1], 10)