The meaning is the same, but the nuance is a bit different. 距離がある and 距離だ just express the distance between the two places, while 距離にある puts more focus on the location, how far it (= the school) is from the reference point (= his house).
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.