Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Center the map around lat/lon from the users IP address #11

Open
paulapreuss opened this issue Nov 28, 2024 · 0 comments
Open

Center the map around lat/lon from the users IP address #11

paulapreuss opened this issue Nov 28, 2024 · 0 comments

Comments

@paulapreuss
Copy link
Collaborator

paulapreuss commented Nov 28, 2024

We could get the rough lat lon from the IP and center the map around those with https://docs.djangoproject.com/en/5.1/ref/contrib/gis/geoip2/

Originally posted by @Bachibouzouk in #9 (comment)

I think this is a cool idea, I will not get into it now but would like to do it still. A Django IPWare package already exists https://github.com/un33k/django-ipware, otherwise there are also manual solutions without additional packages https://stackoverflow.com/questions/4581789/how-do-i-get-user-ip-address-in-django

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant