String tagName = tagDetails.getName();
// get the name of the region
String regionId = tagDetails.getRegion().getId();
TrafficCountReport trafficCountReport = new TrafficCountReport();
/* The LONG version (ie, broken out by vehicle type
ArrayList<TrafficCountRecord> weekdayCounts = getTrafficCountReportLong(tagName, regionName, TrafficCountRecord.DAYTYPE_WEEKDAY);
trafficCountReport.setWeekdayCounts(weekdayCounts);
ArrayList<TrafficCountRecord> saturdayCounts = getTrafficCountReportLong(tagName, regionName, TrafficCountRecord.DAYTYPE_SATURDAY);
trafficCountReport.setSaturdayCounts(saturdayCounts);
ArrayList<TrafficCountRecord> sundayHolidayCounts = getTrafficCountReportLong(tagName, regionName, TrafficCountRecord.DAYTYPE_SUNDAY_HOLIDAY);
trafficCountReport.setSundayHolidayCounts(sundayHolidayCounts);
*/
// The short version, where we have totals just by tag/hour of day
ArrayList<Integer> weekdayTotals = getTrafficCountReportShort(tagName, regionId, TrafficCountRecord.DAYTYPE_WEEKDAY);
trafficCountReport.setWeekdayTotals(weekdayTotals);
ArrayList<Integer> saturdayTotals = getTrafficCountReportShort(tagName, regionId, TrafficCountRecord.DAYTYPE_SATURDAY);
trafficCountReport.setSaturdayTotals(saturdayTotals);
ArrayList<Integer> sundayHolidayTotals = getTrafficCountReportShort(tagName, regionId, TrafficCountRecord.DAYTYPE_SUNDAY_HOLIDAY);
trafficCountReport.setSundayHolidayTotals(sundayHolidayTotals);
return trafficCountReport;
}