def get_trip_list_for_seven_days(self, start_ts): seventy_two_hours_ago_ts = start_ts - 7 * 24 * 60 * 60 # 7 days in seconds # TODO: This is not strictly accurate, since it will skip trips that were in a later timezone but within the # same requested date range. trip_gj_list = gfc.get_geojson_for_range(self.user_id, seventy_two_hours_ago_ts, start_ts) logging.debug("Found %s trips in three days starting from %s" % (len(trip_gj_list), start_ts)) return trip_gj_list
def get_maps_for_range(user_id, start_ts, end_ts): map_list = [] geojson_list = gfc.get_geojson_for_range(user_id, start_ts, end_ts) return get_maps_for_geojson_list(geojson_list)