TomorrowsCities / tomorrowscities

MIT License
3 stars 1 forks source link

feature: switching to fine-level metrics #54

Closed hkayabilisim closed 3 months ago

hkayabilisim commented 3 months ago

Instead of aggregating the metrics on a building level, we now keep a tally table where each record corresponds to an individual. Tally dataframe is calculated once. Whenever a bounding box of the map or a filter is changed, the metrics are recalculated from tally table. This is done in the backend. Fortunately, metric calculation is only about filtering on the tally table, it is fast.