Sign in to follow this  
phjvh

xml latitude/longitude

Recommended Posts

Hi,Solved all kinds of problems, see before.But i cannot produce an xml-code for aircraft position, ADIRS(long./lat.)Can someone help me?phjvh

Share this post


Link to post
Share on other sites
Help AVSIM continue to serve you!
Please donate today!

I tried to find the archived post in this but couldn't find it.. These code snippets courtesy of Arne Bartels:2 Versions.. %((A:PLANE LATITUDE, degrees) d 0 >= s0 r abs d 3600 * 60 % r d 60 * 60 % flr r flr 'N' 'S' l0 ? )%!s!%!02.0f!°%!02.0f!'%!02.0f!"%((A:PLANE LONGITUDE, degrees) d 0 >= s0 r abs d 3600 * 60 % r d 60 * 60 % flr r flr 'E' 'W' l0 ? )%!s!%!03.0f!°%!02.0f!'%!02.0f!"%((A:PLANE LATITUDE, degrees) d 0 >= )%{if}%N%{else}%S%{end}%( abs d flr )%!02d!°%( 1 % 60 * d flr )%!02d!'%( 1 % 60 * )%!02.0f"%((A:PLANE LONGITUDE, degrees) d 0 >= )%{if}%E%{else}%W%{end}%( abs d flr )%!03d!°%( 1 % 60 * d flr )%!02d!'%( 1 % 60 * )%!02.0f"Regards,Roman[link:www.packers.com]GREEN BAY PACKERS][/i :-ukliam :-beerchug

Share this post


Link to post
Share on other sites

HiBy the way,This is the codetried the others toodidn't workhelp%((A:PLANE LATITUDE, degrees) d 0 >= )%{if}%N%{else}%S%{end}%( abs d flr )%!02d!

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this