libosmscout  0.1
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Modules
include/osmscout/util/SunriseSunset.h File Reference
#include <osmscout/lib/CoreImportExport.h>
#include <osmscout/GeoCoord.h>
#include <osmscout/system/Compiler.h>
#include <osmscout/system/Math.h>
#include <osmscout/util/Time.h>
#include <osmscout/util/String.h>
#include <osmscout/util/SunriseSunset.h>
#include <optional>
#include <string>

Namespaces

 osmscout
 Original source: https://github.com/philipperemy/easy-encryption/blob/master/b64.h licensed under terms of MIT license.
 

Typedefs

using osmscout::SunriseSunsetRes = std::optional< std::tuple< Timestamp, Timestamp > >
 

Functions

SunriseSunsetRes osmscout::GetAstronomicalTwilight (const GeoCoord &location, const Timestamp &day=Timestamp::clock::now())
 Calculate the astronomical twilight time for the given date and given location. More...
 
SunriseSunsetRes osmscout::GetCivilTwilight (const GeoCoord &location, const Timestamp &day=Timestamp::clock::now())
 Calculate the civil twilight time for the given date and given location. More...
 
SunriseSunsetRes osmscout::GetNauticalTwilight (const GeoCoord &location, const Timestamp &day=Timestamp::clock::now())
 Calculate the nautical twilight time for the given date and given location. More...
 
SunriseSunsetRes osmscout::GetSunriseSunset (const GeoCoord &location, const Timestamp &day, double sunAltitude)
 Calculate the sunrise and sunset times for the given date, given location, and sun altitude. More...
 
SunriseSunsetRes osmscout::GetSunriseSunset (const GeoCoord &location, const Timestamp &day=Timestamp::clock::now())
 Calculate the sunrise and sunset times for the given date and given location. More...