1

I am planning to develop an application for which I need to know the sun rise and sun set times of any day (in atleast an year complete) depending upon the place (zone/city).

Considering that I need to develop such an application for Android and also for a desktop application, I would like to know if there are any APIs or libraries for the same that could help me get these data easily.

PS: Though I mentioned both Android and desktop, the preference is more for the former but it would be nice to use an API that is compliant for both.

Vamsi Emani
  • 10,072
  • 9
  • 44
  • 71
  • http://stackoverflow.com/questions/4564972/i-need-a-sunrise-sunset-webservice-api – Alex W Jul 24 '12 at 13:21
  • Have a look at this [link](http://mikereedell.github.com/sunrisesunsetlib-java/), it might be helpful for you. – alex Jul 24 '12 at 13:19

2 Answers2

3

Simple Research found the following:

Option that costs money:

Free Solution: Gets you an RSS feed returning a direct link to an XML file with all the data including sunrise / sunset times

PS: You can also compute it directly using algorithms available online, but using an API would probably be best

EDIT: I fixed the bad formatting. My bad.

Community
  • 1
  • 1
DMor
  • 770
  • 2
  • 8
  • 17