-(ㄹ)거라 is a contraction of -것이라.
거라 and 것이라 are shortened forms of -것이라고 which means "that ..." (quoting).
그녀는 다 잘 될 거라 말했다 = .. 거라고 말했다 = .. 것이라고 말했다.
=> She said it will all turn out alright.
거리 is just a noun with a few different meanings.
1. street boulevard 거리의 불빛: lights on the boulevards
2. distance 서울과 부산 사이의 거리: distance between Seoul and Busan
3. stuff, material (for some purpose) 놀 거리: things to play with, 일거리: job, work (to do)