Skip to content

[REQUEST] Guess current location from public IP address #128

Description

@milahu

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

Feature RequestRequests for new features or feedbackSuggestionAll kinds of suggestions

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions