By is something next to or very close to.
Near is something that is a bigger distance than by but not very far away.
- He is standing by the front door.
- My hotel was near the beach – about 200m away.
By is something next to or very close to.
Near is something that is a bigger distance than by but not very far away.