Smart Cities via Data Aggregation