Calculate distance to each radar site from current location

This commit is contained in:
Dan Paulat 2022-10-07 23:48:39 -05:00
parent 6e7a13494a
commit 3a4819aeff
7 changed files with 192 additions and 70 deletions

View file

@ -7,6 +7,9 @@ namespace scwx
namespace common
{
constexpr double kMilesPerMeter = 0.00062137119;
constexpr double kKilometersPerMeter = 0.001;
/**
* @brief Coordinate type to hold latitude and longitude of a location.
*/
@ -34,6 +37,12 @@ enum class DegreeStringType
DegreesMinutesSeconds
};
enum class DistanceType
{
Kilometers,
Miles
};
std::string
GetLatitudeString(double latitude,
DegreeStringType type = DegreeStringType::Decimal);