Google API for location, based on user IP address

0 views
Skip to first unread message

user2538596 via StackOverflow

unread,
Jul 30, 2014, 12:17:24 PM7/30/14
to google-appengin...@googlegroups.com

i am looking for an APi which could return back user's current location(city) based on it's IP adress.i searched for it and found

http://freegeoip.net/json

But my client is a big time Google Fan and is insisting only for any available Google API, can some one help me out with this.



Please DO NOT REPLY directly to this email but go to StackOverflow:
http://stackoverflow.com/questions/17402103/google-api-for-location-based-on-user-ip-address

Peter Knego via StackOverflow

unread,
Jul 30, 2014, 12:17:26 PM7/30/14
to google-appengin...@googlegroups.com

Google already appends location data to all requests coming into GAE (see Request Header documentation for go, java, php and python). You should be interested X-AppEngine-Country, X-AppEngine-Region, X-AppEngine-City and X-AppEngine-CityLatLong headers.

An example looks like this:

X-AppEngine-Country:US
X-AppEngine-Region:ca
X-AppEngine-City:norwalk
X-AppEngine-CityLatLong:33.902237,-118.081733


Please DO NOT REPLY directly to this email but go to StackOverflow:
http://stackoverflow.com/questions/17402103/google-api-for-location-based-on-user-ip-address/17402448#17402448
Reply all
Reply to author
Forward
0 new messages