Henry, instruments such as the online student connectedness survey (OSCS tool) and the distance and open learning environment scale (or DOLES) have been successfully used in education with varying success. You may either adapt these to your purposes and see what benefit they may be for you.
I'm not sure exactly what you mean by distance, but if it's the opposite of relational closeness, you could use a closeness scale and reverse score it: