Which approach is better to use in C++ to create the type House
,
struct Coord {
double latitude;
double longitude;
};
struct House {
string number; // example: 17A
vector<Coord> coordinates;
bool isCompletelyStraight;
};
or
using Latitude = double;
using Longitude = double;
using Coord = pair<Latitude, Longitude>;
using Number = string; // example: 17A
using IsCompletelelyStraight = bool;
using House = tuple<Number, vector<Coord>, IsCompletelelyStraight>;
?