feat: Adds thermal balance point, still need to implement economic balance point.
This commit is contained in:
@@ -80,6 +80,7 @@ private struct IntermediateResponse: Codable, Equatable, Sendable {
|
||||
}
|
||||
}
|
||||
|
||||
// TODO: Need to add climate zone 7 (-17).
|
||||
private func estimatedHeatingTemperature(_ coordinates: Coordinates) -> Double {
|
||||
let latitude = coordinates.latitude
|
||||
let longitude = coordinates.longitude
|
||||
@@ -103,6 +104,7 @@ private func estimatedHeatingTemperature(_ coordinates: Coordinates) -> Double {
|
||||
return 0
|
||||
}
|
||||
|
||||
// TODO: Need to add climate zone 7 (89).
|
||||
private func estimatedCoolingTemperature(_ coordinates: Coordinates) -> Double {
|
||||
let latitude = coordinates.latitude
|
||||
let longitude = coordinates.longitude
|
||||
@@ -121,6 +123,7 @@ private func estimatedCoolingTemperature(_ coordinates: Coordinates) -> Double {
|
||||
return 85
|
||||
}
|
||||
|
||||
// TODO: Need to add climate zone 7.
|
||||
private func determineClimateZone(heatingTemperature: Double, stateCode: String) -> ClimateZone {
|
||||
let hotHumidStates = ["FL", "LA", "TX", "MS", "AL", "GA", "SC"]
|
||||
if hotHumidStates.contains(stateCode.uppercased()) {
|
||||
|
||||
Reference in New Issue
Block a user