How do I fix the location arrow pointing in the wrong direction?

Frequently asked questions for CoMaps application

To improve the compass accuracy, perform a compass calibration following these instructions.
Please note that the compass may be inaccurate when the phone is among large buildings, like in an urban area or downtown, or the compass sensor may not be functioning correctly.