Geo information from Traces

50 views
Skip to first unread message

Sandeep

unread,
Mar 29, 2016, 2:03:53 AM3/29/16
to Google App Engine
I've just observed geo information coming in the Traces(logs) for my GAE project, as a http/client_city and http/client_country fields. Can this be stored anyway and used within the project? Is it legit to use this in the first place? In terms of Google policies. Your thoughts please, Thanks.

Nick (Cloud Platform Support)

unread,
Mar 29, 2016, 1:00:57 PM3/29/16
to Google App Engine
Hey Sandeep,

Excellent question. I've just noticed this feature after checking at your advice. I'll report back to this thread with information, if possible, on how to replicate the same within your code. There are geolocation APIs and libraries out there, but I'll see if I can shed some light on whether we have a Cloud Platform way of doing this which is available to users.

Regards,

Nick
Cloud Platform Community Supper

PK

unread,
Mar 29, 2016, 1:06:43 PM3/29/16
to google-a...@googlegroups.com
These can be accessed as HTTP Headers as documented for python here: https://cloud.google.com/appengine/docs/python/requests in the section “App Engine Specific Headers”

I expect that ss long as you warn your users in your T&C/Privacy Policy that you use these to offer your service you should be fine.

--
You received this message because you are subscribed to the Google Groups "Google App Engine" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-appengi...@googlegroups.com.
To post to this group, send email to google-a...@googlegroups.com.
Visit this group at https://groups.google.com/group/google-appengine.
To view this discussion on the web visit https://groups.google.com/d/msgid/google-appengine/7a8e5852-cba6-4fea-a9cf-120c80ccc2e4%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Mihail Russu

unread,
Mar 29, 2016, 1:08:40 PM3/29/16
to Google App Engine
Have you looked at X-AppEngine-Country & X-AppEngine-City request headers that contain this information on every request received by your app? 

Sandeep

unread,
Mar 29, 2016, 1:12:08 PM3/29/16
to google-a...@googlegroups.com

thanks for the pointer guys, I'll check it out!

--
You received this message because you are subscribed to a topic in the Google Groups "Google App Engine" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/google-appengine/zZWxtB-rVXA/unsubscribe.
To unsubscribe from this group and all its topics, send an email to google-appengi...@googlegroups.com.

To post to this group, send email to google-a...@googlegroups.com.
Visit this group at https://groups.google.com/group/google-appengine.

Nick (Cloud Platform Support)

unread,
Mar 29, 2016, 1:45:13 PM3/29/16
to Google App Engine
Ah yes, the X-AppEngine headers, my old friends. This is indeed the correct solution, and can be accessed in every runtime. 


On Tuesday, March 29, 2016 at 1:12:08 PM UTC-4, Sandeep Dhameshia wrote:

thanks for the pointer guys, I'll check it out!

On Mar 29, 2016 10:39 PM, "Mihail Russu" <*@russu.net> wrote:
Have you looked at X-AppEngine-Country & X-AppEngine-City request headers that contain this information on every request received by your app? 

On Tuesday, March 29, 2016 at 9:03:53 AM UTC+3, Sandeep Dhameshia wrote:
I've just observed geo information coming in the Traces(logs) for my GAE project, as a http/client_city and http/client_country fields. Can this be stored anyway and used within the project? Is it legit to use this in the first place? In terms of Google policies. Your thoughts please, Thanks.

--
You received this message because you are subscribed to a topic in the Google Groups "Google App Engine" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/google-appengine/zZWxtB-rVXA/unsubscribe.
To unsubscribe from this group and all its topics, send an email to google-appengine+unsubscribe@googlegroups.com.
To post to this group, send email to google-appengine@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages