Get Township Climate
curl --request GET \
--url https://solarmoney.up.railway.app/api/townshipimport requests
url = "https://solarmoney.up.railway.app/api/township"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://solarmoney.up.railway.app/api/township', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>",
"input": "<unknown>",
"ctx": {}
}
]
}Terrain & Climate
Get Township Climate
依座標查詢最近鄉鎮市的 12 個月 NASA POWER 氣候資料,並以 pvlib 計算最佳仰角。 前端 Results.tsx 用此取代靜態 TW_IRRADIANCE 三區常數與硬編碼 GOAL_ADJ。 回傳:( township_code, county_name, monthly_ghi: [12 floats, kWh/m²/day], monthly_temp: [12 floats, °C], monthly_wind: [12 floats, m/s], best_angle: int (pvlib 最佳仰角,南向), goal_adj: [12 floats] (POA/GHI ratio,乘上 monthly_ghi 得有效輻照) )
GET
/
api
/
township
Get Township Climate
curl --request GET \
--url https://solarmoney.up.railway.app/api/townshipimport requests
url = "https://solarmoney.up.railway.app/api/township"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://solarmoney.up.railway.app/api/township', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>",
"input": "<unknown>",
"ctx": {}
}
]
}