Intially determine the TUG heading offset?

C# and simconnect … I have a TUG for pushbacks working very well … HOWEVER
when I first connection to a flight (simconnect) I have to determine the “True
North” offset for the tug directions … it is different for varying locations
on the globe. Now what I do is issue a pushback direction and see where I end
up HEADING … and it is off like 11 degrees in KLAX and then I know the
offset. How can I know this initially? thanks

Hello @ZenMusic I guess you can use the MAGVAR simulation variable for this.
And if you need this for a distant object, maybe you can get the magnetic
variation from a nearby waypoint through the facilities API:

Regards, Sylvain

thanks, that worked