If you dont know how to do that, follow the steps listed in this guide.
The option is visible on the bottom left.
Some of the best compass calibration apps includeGPS Essentials,GPS Status, andGPS Tools.
Check them out and keep the app that works best with your phone.
Your iPhone will automatically scan for nearby wireless connections and this will improve your devices location accuracy.