IP Geolocation or WHOIS as a last resort
I'm trying to help another Free Software project improve their app and have a simpler experience.
It's a current weather and weather forecast applet for cinnamon: https://github.com/linuxmint/cinnamon-spices-applets/issues/5355
They're going to implement geoclue in a future version and I think that's great. Using nearby wifi to find location is an excelent solution!
But they're still concerned about managing a fallback to ip geolocation if geoclue doesn't come up with a good answer. And I'm wondering why wouldn't geoclue fall back to ip geolocation on its own if there's no better method?
Desktops for example. Home theater pcs. They might not have wifi, No gps receiver or nmea or cell phone radio.....
So how would geoclue work on them?
It seems to me that getting location detection to work, should be done by one project, and.. you're it, right?
So what about adding a pool of ip geolcoation providers as a level of available accuracy to geoclue, and another level, a whois lookup if your own IP.
Upon further reading it looks like maybe GeoIP is already used by geoclue. the manpage for geoclue doens't mention it but its got a bulletpoint on https://gitlab.freedesktop.org/geoclue/geoclue. Suggest manpage to include it even if there's no configurable options for the geoip 'agent'. Or it should indicate what other program to use to configure ip geolocation