po_scatter_path = (po_lat,po_lon) pl_scatter_path = (pl_lat,pl_lon) if (city is 'US'): mymap = GoogleMapPlotter(39.908213, -99.675441, 4) else: mymap = GoogleMapPlotter.from_geocode(city, 12) lat, lng = mymap.geocode(city) ## CIRCLE IMPLEMENTATION #mymap.circle(lat, lng, 20000, "#B0C4DE", ew=2) ## GRID IMPLEMENTATION #mymap.grid(37.42, 37.43, 0.001, -122.15, -122.14, 0.001) ## HEAT MAP IMPLEMENTATION mymap.heatmap(po_scatter_path[0], po_scatter_path[1], threshold=10, radius=40) mymap.heatmap(pl_scatter_path[0], pl_scatter_path[1], threshold=10, radius=40) mymap.scatter(po_scatter_path[0], po_scatter_path[1], c='tomato', marker=True) mymap.scatter(pl_scatter_path[0], pl_scatter_path[1], c='lemonchiffon', marker=True) mymap.draw('./mymap.html') webbrowser.open(tweetMap) liveFeed = listener(StreamListener) liveFeed.stream() time.sleep(10 * 60) if (searchType == 'day'): startDate = raw_input('Start Date: ') endDate = raw_input('End Date: ')