fromEnglish Grammar Today
Nearbyis anadverb or an adjective meaning ‘not far away’:
Does Paul livenearby?(adverb)
Luckily, thenearbybuildings weren’t damaged by the fire.(adjective)
We don’t usenearbyas a preposition. We usenear:
He worked in a restaurantnearthe station.
Not:He worked in a restaurant nearby the station.