Hello alicesp,
Thank you for reaching out to Apple Support Communities, and we'll be happy to help in any way we can. We understand you're having issues with location services on your iPhone. Here is helpful information about how it works: About privacy and Location Services in iOS, iPadOS, and watchOS - Apple Support
"Improve GPS accuracy
GPS accuracy depends on the number of visible GPS satellites. Locating all visible satellites can take several minutes, with accuracy gradually increasing over time. To improve GPS accuracy:
- Make sure that you've set the date, time, and time zone correctly on the device in Settings > General > Date & Time. If possible, use Set Automatically.
- Keep a clear view in several directions. Walls, vehicle roofs, tall buildings, mountains, and other obstructions can block line of sight to GPS satellites. When this happens, your device uses Wi-Fi or cellular networks to determine your position until the GPS satellites are visible again.

Crowd-sourced Wi-Fi and cellular Location Services
If Location Services is on, your device will periodically send the geo-tagged locations of nearby Wi-Fi hotspots and cell towers to Apple to augment Apple's crowd-sourced database of Wi-Fi hotspot and cell tower locations. If you're traveling (for example, in a car) and Location Services is on, a GPS-enabled iOS device will also periodically send GPS locations, travel speed, and barometric pressure information to Apple to be used for building up Apple's crowd-sourced road-traffic and indoor pressure databases. The crowd-sourced location data gathered by Apple is stored with encryption and doesn't personally identify you."
We hope this helps.
Cheers!