1. Turn Location on and set it to high accuracy: Settings, then Location, then Location services, then Google Location Accuracy (on).
2. Go outside or near a window. GPS works poorly indoors.
3. Calibrate the compass: in Google Maps, tap the blue dot, then Calibrate, and follow the steps.
4. Clear Google Maps cache: Settings, then Apps, then Maps, then Storage, then Clear cache.
5. Allow location for the app: Settings, then Apps, choose the app, then Permissions, then Location.
6. Turn off battery saver, which can limit GPS.
7. Update Google Play services and Maps.