Structure and meaning in human settlements