A. Ensure that your device's location settings are set to 'High accuracy'. Go to Settings > Location > Mode and select 'High accuracy'. This uses GPS, Wi-Fi, and mobile networks to provide the most accurate location.
B. If the issue continues, try recalibrating your device's compass. Open Google Maps, tap on the blue dot that shows your location, and select 'Calibrate compass'. Follow the on-screen instructions to improve location accuracy.