A model for clustering a spatial network with application to local labour system identification