teamdigitale / anpr-dashboard-server

Service to expose data about the migration status of Italian municipalities to the National Registry
GNU Affero General Public License v3.0
2 stars 4 forks source link

Aggregates data by region and province #18

Closed sebbalex closed 4 years ago

sebbalex commented 4 years ago

Server side implementation for https://github.com/teamdigitale/anpr-dashboard/issues/33

Feat data representation:

aggregates: {
  aggrByRegion: [
    {
      regione: Lazio,
      comuni_subentro: 100,
      popolazione_subentro: 200000
      popolazione_aire_subentro: 500
      comuni_presubentro: 50,
      popolazione_presubentro: 6000
      popolazione_aire_presubentro: 100
    },
    ...
  ],
  aggrByProvince: [
    {
      regione: Lazio,
      provincia: Roma,
      comuni_subentro: 100,
      popolazione_subentro: 200000
      popolazione_aire_subentro: 30
      comuni_presubentro: 50,
      popolazione_presubentro: 6000
      popolazione_aire_presubentro: 50
    },
    {
      regione: Lazio,
      provincia: Latina,
      comuni_subentro: 100,
      popolazione_subentro: 200000
      popolazione_aire_subentro: 60
      comuni_presubentro: 50,
      popolazione_presubentro: 6000
      popolazione_aire_presubentro: 200
    },
    ...
  ],
}