"The dogs sleep near the boy."
Translation:Hundene sover nær drengen.
I don't know the answer to your question. However, one of the moderators commented on the exercise "Er du nær ved mig?", stating that "nær" = nearby" and "ved mig" = "where I am"
If you do an online search, you will find sentences using "nær ved mig", "nær ved dig", and so on.