GeoIP with google engine and python

I am trying to add the following function to the application.

Sequencing:

  • User goes to web application

  • The web application determines the country and city based on the IP address of users.

  • The web application automatically selects the country and city of the user and displays it to the user.

I tried to find this and even asked a question in the google group of the google engine, but I could not find a reliable way to do this in the Google App Engine.
Does anyone have any questions where I can start with this?

+4
source share
2 answers

If you need to make this server part, you will need to get one of the databases that display IP addresses in countries and cities. These databases are outdated and usually commercial. Maxmind has various licenses for its database, including some free ones that I consider.

However, if you can transfer the validation to the client side, in the browser you can make an ajax call to the Maxmind free JSONP API to get the estimated location of your user, and then let your application process the solutions using javascript.

+6
source

I would use the Simplegeo API. There is a very quick call to do just that. https://simplegeo.com/docs/api-endpoints/simplegeo-places

0
source

Source: https://habr.com/ru/post/1344477/


All Articles