There is no rule about how far the homestead is from the temple, but it depends on whether you can accept it.
According to superstition, there is poverty in front of the temple, wealth behind the temple, and widows in the left temple and right temple. So, the last homestead is behind the temple.