You can remember the meaning of 路过 with this easy mnemonic:
If you walk down this road (路) for five minutes, you'll pass (过) by my house.
Using mnemonics to remember the meaning of Chinese characters like can have an enormous impact on how long to learn Mandarin it takes.