how to use the parameters
Closed this issue · 2 comments
rudrab commented
Hi, How to use the SunTimes parameter to get the twilight, golden hour etc?
I was trying (the latest):
SunTimes twilight = SunTimes.Twilight.valueOf("ASTRONOMICAL").compute().at(latlang.Lat, latlang.Lat).today().execute();
shred commented
Hi rudrab! I'm sorry, the twilight parameter is indeed poorly documented. I'm going to fix that.
You can use a different twilight setting like this:
SunTimes times = SunTimes.compute()
.twilight(SunTimes.Twilight.ASTRONOMICAL)
// set your other parameters
.execute();
rudrab commented
Hi shred, Thanks a lot.