Camera pos API/simvar

I have a traffic addon, in 2020 it is spawning traffic near the aircraft’s position.
This is not really suitable for 2024, because the player may expect to see the traffic in world map, or when flying many miles away from their aircraft in drone cam.
So, How to get the transformation of the camera, regardless of if the player is in World view/flight/drone cam etc?