Api Get Buildings
curl --request GET \
--url https://solarmoney.up.railway.app/api/buildingsimport requests
url = "https://solarmoney.up.railway.app/api/buildings"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://solarmoney.up.railway.app/api/buildings', 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": {}
}
]
}Buildings & Shadows
Api Get Buildings
回傳指定範圍內的建物清單(GBA DB → OSM Overpass fallback)。 接受兩種形式:
- 地圖視口 bbox:?min_lon=…&min_lat=…&max_lon=…&max_lat=…
- 點+半徑:?lat=…&lng=…&radius_m=…(預設 300m)
GET
/
api
/
buildings
Api Get Buildings
curl --request GET \
--url https://solarmoney.up.railway.app/api/buildingsimport requests
url = "https://solarmoney.up.railway.app/api/buildings"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://solarmoney.up.railway.app/api/buildings', 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": {}
}
]
}