With resident's location available, it should be theoretically possible to trace all the contacts an infected resident was in contact with and quarantine them as well. However this can be an expensive algorithm with brute force algorithm as spatial search with time dimension is involved.
With resident's location available, it should be theoretically possible to trace all the contacts an infected resident was in contact with and quarantine them as well. However this can be an expensive algorithm with brute force algorithm as spatial search with time dimension is involved.
Algorithms like GriSPy: A Python package for Fixed-Radius Nearest Neighbors Search found by Varsha are helpful here