mirror of
https://github.com/ciphervance/supercell-wx.git
synced 2025-10-30 21:20:06 +00:00
Calculate distance to each radar site from current location
This commit is contained in:
parent
6e7a13494a
commit
3a4819aeff
7 changed files with 192 additions and 70 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue