Yā may address a nearby person. Its use is not limited to someone physically far away.
Opening interactive controls...
Yā for a Nearby Person
Vocative Particles: Five Forms, Uses and Parsing
Yā may address a nearby person. Its use is not limited to someone physically far away.