Sun and Moon data for GPS Programs The attached is a module to be attached to GPS programs. Given the coordinates and date from the GPS it calculates the Sunrise and Sunset times, the moonrise and Moonset times and the moon phase for that date with a photo of the moon. The algorithms are translations of what I found in the net, except for the algo of the moon phase for which I used part of the algorithm of date translation from Gregorian Calendar to Hebrew calendar, and this is the most accurate algorithm. (If you are interested in the Hebrew calendar - ask me for the full algo). The main module in the attachment is just a tool to run the module, instructions for the integration appear in the header of the module. There are provisions for use with either GPS.dll or GPSDriver.dll The photos should be put with their "moons" directory next to the application. Happy navigation ! Updated to ver 2, to make the module independent of the type of GPS library. After Alfcen remark, I updated it to ver 3 to be able to work independently of any other gps related code, with gpsdriver. Edit: see in #16 updated and corrected astro.bas module, after bugs found by Agraham and Jony. Thanks.