mozilla / ichnaea

Mozilla Ichnaea
http://location.services.mozilla.com
Apache License 2.0
565 stars 140 forks source link

Inaccurate GeoIP lookup (geoclue) #2061

Open jeffchase opened 6 months ago

jeffchase commented 6 months ago

I am currently on my laptop at a hotel in Las Vegas. Geoclue (2.7.0) on Ubuntu reports an inaccurate location:

New location: Latitude: 37.751000° Longitude: -97.822000° Accuracy: 1000000.000000 meters Description: ipf fallback (from WiFi data) Timestamp: Mon 18 Dec 2023 01:19:50 AM CST (1702883990 seconds since the Epoch)

(This looks like a US country wide catch all location)

My understanding is that this information comes from MLS using my IP address (136.179.21.73) and that MLS uses the MaxMind City database. I downloaded the GeoLite2 City database and found a match for my subnet:

network,geoname_id,registered_country_geoname_id,represented_country_geoname_id,is_anonymous_proxy,is_satellite_provider,postal_code,latitude,longitude,accuracy_radius

136.179.21.0/24,5506956,6252001,,0,0,89120,36.0907,-115.0886,1000

which correctly corresponds to Las Vegas.

Would this be an issue with MLS or should I investigate Geoclue?