mirror of
https://github.com/ciphervance/supercell-wx.git
synced 2025-10-30 18:30:06 +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,9 +1,12 @@
|
|||
#pragma once
|
||||
|
||||
#include <string>
|
||||
|
||||
namespace scwx
|
||||
{
|
||||
namespace common
|
||||
{
|
||||
|
||||
namespace Characters
|
||||
{
|
||||
|
||||
|
|
@ -11,5 +14,13 @@ constexpr char DEGREE = static_cast<char>(0xb0);
|
|||
constexpr char ETX = static_cast<char>(0x03);
|
||||
|
||||
} // namespace Characters
|
||||
|
||||
namespace Unicode
|
||||
{
|
||||
|
||||
extern const std::string kDegree;
|
||||
|
||||
} // namespace Unicode
|
||||
|
||||
} // namespace common
|
||||
} // namespace scwx
|
||||
|
|
|
|||
|
|
@ -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