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

Geolocation stopped working #30

Open
2 tasks
jorgelbg opened this issue Jun 28, 2021 · 2 comments
Open
2 tasks

Geolocation stopped working #30

jorgelbg opened this issue Jun 28, 2021 · 2 comments
Labels
bug Something isn't working

Comments

@jorgelbg
Copy link
Owner

The geolocation feature from the edge worker is no longer working (since 2021-06-09 from my logs). Apparently, the ipgeolocationapi.com service has been decommissioned (apilayer/geolocationapi#15).

We have two possible routes:

@jorgelbg jorgelbg added the bug Something isn't working label Jun 28, 2021
@fredysomy
Copy link

Hey @jorgelbg i tried the self hosting one , but due to the change of api endpoint of Maxmind there was some errors.
But if you just need the geolocation feature you can check out https://github.com/ProxPi/geolocationapi. Which is a fork i made and its working .( There is some changes to be done from your side in the code if you are using it , because i changed it in a way to get only Lat and long from IP.

@jorgelbg
Copy link
Owner Author

@fredysomy Thanks for the fork and for already integrating the fix for the new download procedure. I think that for now I'm going to translate the country code (that we get from Cloudflare's headers) and see if we really need the city/lat/lon.

jorgelbg added a commit that referenced this issue Jul 20, 2021
This uses the code from the `cf-ipcountry` header that is provided by
Cloudflare to directly get the country name that we use in the
Dashboard. Since the city/lat/long were removed from the dashboard this
seems like a good compromise.

Implements the second strategy as explaiend in #30.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants