Spatial awareness in pervasive ecosystems