How to get next waypoint by an interface

Hi there,
Im a newbee in terms of the robot interfaces and dont really know if I simply used the wrong search terms - please bear with me if that is the case. I would like to read out the next waypoint and, if possible, the one after. My favourite interface would be RTDE or Dashboard Interface. On the robot side there is running a simple program without any conditional branching.
Thanks in advance for any advise.

Robot is constantly streaming it’s current position on RTDE interface.
You’d have to manually copy next waypoint coordinates to general purpose variables, and then read it on RTDE interface, or send it using xmlrpc (if I understand your problem correctly)