想要在网站上显示日出/日落时间 [英] Want to show sunrise/sunset time on website

查看:42
本文介绍了想要在网站上显示日出/日落时间的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在我的网站上,我想显示用户打开网页的地点的日出和日落时间.现在,如果您像这样搜索:http://www.google.com/search?q=sunrise:<city_name>,Google 网页搜索会给出日出和日落时间.我如何使用它在我的网站上提供此功能?

On my website I want to display the sunrise and sunset time of a the place from where the person is opening the webpage. Now Google Web Search give the sunrise and sunset time if you search like this :http://www.google.com/search?q=sunrise:<city_name> . How can I use this to provide this functionality on my website?

推荐答案

我正在寻找类似的服务并找到了 http://www.earthtools.org/webservices.htm#sun

I was looking for a similar service and found http://www.earthtools.org/webservices.htm#sun

以下是 12 月 4 日纽约的示例:

Here's an example for New York for the 4th December:

http://www.earthtools.org/sun/40.71417/-74.00639/4/12/-5/0

这篇关于想要在网站上显示日出/日落时间的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆