ONSdigital / dp-find-insights-poc-api

Find Insights Proof of Concept
MIT License
1 stars 0 forks source link

Add option to aggregate data #152

Closed bothness closed 1 month ago

bothness commented 2 years ago

It would be useful to have an aggregation option, so instead of returning rows of counts for individual area codes, you could get summed totals across all of them. (This is equivalent to the MAKE functionality for geographies on the Nomis API).

Two use cases for this:

  1. Summing the data for the geographies within the current view on the map.
  2. Summing data for "draw your geography".

Note: There will be a couple of anomolous variables, density and average age (median or mean), that would need to be calculated on the back-end rather than just summed as counts.