[英]Access last user location from Google account using java
How do you access the user's Google Account last location in code?您如何在代码中访问用户的 Google 帐户最后位置? I am building an application that will that will need to get user address/general location and to store data and I want to identify the last location of the person stored by Google using Google signups/login before submitting the data.我正在构建一个应用程序,它将需要获取用户地址/一般位置并存储数据,并且我想在提交数据之前使用谷歌注册/登录来识别谷歌存储的人的最后位置。
Google doesn't appear to provide this via API. Google 似乎没有通过 API 提供此功能。 I suggest you use the current device location or ask the user for their home city, or a country + TZ location.我建议您使用当前设备位置或向用户询问他们的家乡,或国家+ TZ 位置。 Alternatively, with some working around you may be able to access this dataset: https://developers.google.com/gmail/markup/reference/types/Person It contains "A contact location for a person's residence.", but the user needs to authenticate access to it.或者,通过一些工作,您可能能够访问此数据集: https://developers.google.com/gmail/markup/reference/types/Person它包含“一个人住所的联系位置。”,但用户需要验证对它的访问。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.