Commits

Anonymous committed f366a71

details

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)
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.