All four words here ( nowhere, anywhere, near, nearly ) are adverbs here. The use of these adverbial phrases (' near ' here is the flat adverbial form of the adjective ' near ') is informal.
New words, one handy idiom, and a 2-minute quiz — delivered to your inbox to keep your streak alive.