开发者

Getting sunshine data from latitude and longitude in php

I am working on a site which requires sunshine (hours of sun in a day )data of a location. I have the laitude and longitude of the location but 开发者_C百科now i have to determine the hours of the sun per day on that location.For example say i have a location 'NewYork'.now i need to know number of hours of suns in a day in a month .So i have to determine the followimng data january-8 hours fabruary-6 hours

means in newyork in january there is 8 hours of sun and so on. Is some one know from where i can get that data . i am using php


Who'd've thunk, PHP has a function for that!
http://php.net/manual/en/function.date-sun-info.php

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜