Aeroplane mode doesn't stop the phone receiving GPS signals. It may also leave wifi and/or bluetooth on which can give a coarse location.
The phone's accelerometers will still run in aeroplane mode which can infer a surprising amount about your location.