client-side geolocation accuracy issues on mobile, any insights?

Author
Zola Ndiaye Author
|
2 days ago Asked
|
15 Views
|
0 Replies
0
we're seeing really inconsistent navigator.geolocation results for our 'What is My Location?' web tool. specifically, for mobile and vpn users, the coordinates are often way off, almost like it's falling back to some stale or crude IP geolocation database instead of actual GPS.

The accuracy values are always super high when this happens, which doesn't help us provide a precise location:
// Example of a console log when accuracy is poor
console.log("Geolocation position obtained:", {
  latitude: 34.0522, 
  longitude: -118.2437,
  accuracy: 50000 
});
console.warn("High accuracy value detected, potential IP-based fallback or stale data.");
anyone got strategies to reliably boost geolocation precision on these devices, or better fallbacks than just a basic IP geolocation lookup when browser APIs fail? help a brother out please...

0 Answers

No answers yet.

Be the first to provide a helpful answer!

Your Answer

You must Log In to post an answer and earn reputation.