mirror of
https://github.com/ciphervance/supercell-wx.git
synced 2025-10-30 21:10:04 +00:00
Updating radar site display fields to be more human-friendly
- Latitude/longitude in degrees N/S/E/W - Radar types with hyphens - Sort by raw decimal values
This commit is contained in:
parent
1bc6e714f5
commit
6e7a13494a
11 changed files with 186 additions and 5 deletions
|
|
@ -1,5 +1,7 @@
|
|||
#pragma once
|
||||
|
||||
#include <string>
|
||||
|
||||
namespace scwx
|
||||
{
|
||||
namespace common
|
||||
|
|
@ -26,5 +28,18 @@ struct Coordinate
|
|||
}
|
||||
};
|
||||
|
||||
enum class DegreeStringType
|
||||
{
|
||||
Decimal,
|
||||
DegreesMinutesSeconds
|
||||
};
|
||||
|
||||
std::string
|
||||
GetLatitudeString(double latitude,
|
||||
DegreeStringType type = DegreeStringType::Decimal);
|
||||
std::string
|
||||
GetLongitudeString(double longitude,
|
||||
DegreeStringType type = DegreeStringType::Decimal);
|
||||
|
||||
} // namespace common
|
||||
} // namespace scwx
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue