简体   繁体   English

如何在 Java 中使用 google geococde api

[英]How to use google geococde api in Java

Is this correct?这样对吗? I am trying to understand it but I am not getting how timezones work in general or in this api, also why timestamp is required as a query to get a timezone of a perticular location?我试图理解它,但我没有了解时区一般是如何工作的,或者在这个 api 中是如何工作的,还有为什么需要时间戳作为查询来获取特定位置的时区? Please help.请帮忙。

Please refer to the documentation, it clearly says the following that answers you question请参阅文档,它清楚地说明以下内容可以回答您的问题

Required Parameters所需参数

- timestamp - 时间戳

specifies the desired time as seconds since midnight, January 1, 1970 UTC.将所需时间指定为自 UTC 1970 年 1 月 1 日午夜以来的秒数。 The Google Maps Time Zone API uses the timestamp to determine whether or not Daylight Savings should be applied. Google Maps Time Zone API 使用时间戳来确定是否应应用夏令时。 Times before 1970 can be expressed as negative values. 1970 年之前的时间可以表示为负值。

It is taken from documentation athttps://developers.google.com/maps/documentation/timezone/intro它取自https://developers.google.com/maps/documentation/timezone/intro 上的文档

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM