想在网站上显示日出/日落时间

joh*_*een 0 time

在我的网站上,我想显示该人打开网页的地方的日出和日落时间.现在,如果您按照以下方式搜索,Google Web搜索会提供日出和日落时间:http://www.google.com/search?q=sunrise:<city_name>.我如何使用它在我的网站上提供此功能?

kor*_*gan 5

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

以下是12月4日纽约的一个例子:

http://www.earthtools.org/sun/40.71417/-74.00639/4/12/-5/0
Run Code Online (Sandbox Code Playgroud)