Geolocation of the IP address when using GAE sdk or otherwise

I hosted my web app on Google appengine (GAE). Does GAE sdk provide any way to find IP geolocation? If so, suggest how I can do this.

+5
source share
2 answers

Yes, you can use request headers to get IP geolocation.

https://developers.google.com/appengine/docs/java/runtime#Request_Headers

The country of the X-AppEngine-Country from which the request originated. ISO 3166-1 alpha-2 country code. App Engine determines this code from the client's IP address.

, , X-AppEngine-Region, X-AppEngine-City X-AppEngine-CityLatLong

, sdk.

+4

, HTTP-, GAE, , GAE IP-.

GAE HTTP-, , ​​ , , IP-. . :

  • X-AppEngine-
  • X-AppEngine-
  • X-AppEngine-
  • X-AppEngine-CityLatLong

, IP, GAE . -, .

+1

All Articles