简体   繁体   English

使用 java 从 Google 帐户访问最后一个用户位置

[英]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.

相关问题 使用Java访问AWS Root用户帐户 - Access AWS Root User account using java 使用Java通过同一用户帐户访问多个电子邮件箱 - Access Multiple Email Boxes through Same user Account using Java 从Java应用程序访问一个(固定)Google帐户日历 - Access to one (fixed) google account calendar from a java application 如何使用 Java 服务帐户访问 Google Sheet? - How do you access a Google Sheet with a service account from Java? 从Java Google App引擎(Servlet)获取访问Google电子表格(保存到Google云端硬盘帐户中) - Get access google spreadsheet (saved into google drive account) from a java google app engine (servlet) 从服务器端使用Java获取Windows用户帐户名称 - Get Windows User Account Name using Java from Server Side 在 Java 中使用服务帐户访问 Google 表格 - Access Google Sheet with service account in Java 如何在java中将资金从一个账户转移到另一个账户,使用每个所需账户的用户输入,以及转账金额 - How to transfer funds from one account to another in java, using user input for each desired account, and amount to transfer 401使用服务器帐户模拟用户访问其Google云端硬盘时未经授权的错误 - 401 Unauthorized error when using a server account to impersonate a user in order to access their Google Drive 使用Java的Google Admin SDK用户访问API - Google Admin SDK User access API using Java
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM