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:
Dan Paulat 2022-10-07 22:29:30 -05:00
parent 1bc6e714f5
commit 6e7a13494a
11 changed files with 186 additions and 5 deletions

View file

@ -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