Google will determine and store the location of any Wi-Fi access point whose SSID (name) does not end with "_nomap".

https://support.google.com/maps/answer/1725632?hl=en#zippy=%2Chow-do-i-opt-my-access-point-out-of-google-location-services

Thanks @cadadr for the link.

Control access point inclusion in Google's Location services - Google Maps Help

To improve Location services and estimate the location of a device, Google uses publicly broadcast Wi-Fi information from wireless access points and GPS, cell tower, and sensor data. This data is limi

Imho it should be a confirmed optin. Something like ending with _googleisallowed.
@hans Unfortunately, when Google managed to convince the general public that they want to be watched, it wasn't by obtaining their informed consent first.