Koi icon indicating copy to clipboard operation
Koi copied to clipboard

[REQUEST] Guess current location from public IP address

Open milahu opened this issue 4 months ago • 0 comments

get latitude and longitude values from a geoip database

in bash this is as simple as

$ geoiplookup $(curl -s https://ipinfo.io/ip) | grep "^GeoIP City Edition, Rev 1:" | cut -d, -f7-8
 47.960899, 12.596100

this is just an approximation in my case the error is 15km but still better than the default value 0, 0

this should not be done automatically only when the user clicks "guess location"

keywords: sunrise/sunset coordinates

milahu avatar Sep 03 '25 09:09 milahu