Flight Distance Covered

Hi Guys,

Lets say a flight is midway through its journey, how do i calculate the distance covered up to that point. I need this info to create a Google Static image showing line of path and also indicating the current position of the flight

Thanks in advance

Use InFlightInfo to find the current latitude/longitude of the flight. Then use LatLongsToDistance to compute the distance from that position from its origin. If you don’t know the position of its origin, you can use AirportInfo to look up the latitude/longitude of the origin airport.