title: Lunar Phase API
body: <p>I am trying to find a free API that provides lunar phase predictions including moonrise and moonset. My PHP based tide tables application is using NOAA for tide and weather data, but it doesn't seem like they offer any lunar data. Does Google have this built into one of their API's that I just don't know about?</p>
  
  <p>On the off chance that nobody knows of a free API (preferably government provided), does anybody know of a simple way to calculate this? I've seen <a href="https://stackoverflow.com/questions/2526815/moon-lunar-phase-algorithm">this post</a>, but the solutions are attempting to calculate them with a high degree of precision. If it's off by a little bit, it's fine.</p>