Even when in airplane mode, your phone GPS is connected to battery power. I found this out while using a location app, and my location was still tracking even when in airplane mode, it was not as accurate, it lagged behind, but it was definitely still tracking.