#ifndef LOCATION_HH #define LOCATION_HH #include #include struct Location { double lat; double lng; Location(double lat, double lng) : lat(lat), lng(lng) {} Location() : lat(std::numeric_limits::quiet_NaN()), lng(std::numeric_limits::quiet_NaN()) {} bool empty() const { return std::isnan(lat) || std::isnan(lng); } }; #endif // LOCATION_HH