Compute Shadow
curl --request POST \
--url https://solarmoney.up.railway.app/api/shadow \
--header 'Content-Type: application/json' \
--data '
{
"lat": 123,
"lng": 123,
"local_hour": 123,
"footprint": [
[
123
]
],
"height": 123
}
'import requests
url = "https://solarmoney.up.railway.app/api/shadow"
payload = {
"lat": 123,
"lng": 123,
"local_hour": 123,
"footprint": [[123]],
"height": 123
}
headers = {"Content-Type": "application/json"}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({lat: 123, lng: 123, local_hour: 123, footprint: [[123]], height: 123})
};
fetch('https://solarmoney.up.railway.app/api/shadow', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"shadow": [
[
123
]
]
}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>",
"input": "<unknown>",
"ctx": {}
}
]
}Buildings & Shadows
Compute Shadow
POST
/
api
/
shadow
Compute Shadow
curl --request POST \
--url https://solarmoney.up.railway.app/api/shadow \
--header 'Content-Type: application/json' \
--data '
{
"lat": 123,
"lng": 123,
"local_hour": 123,
"footprint": [
[
123
]
],
"height": 123
}
'import requests
url = "https://solarmoney.up.railway.app/api/shadow"
payload = {
"lat": 123,
"lng": 123,
"local_hour": 123,
"footprint": [[123]],
"height": 123
}
headers = {"Content-Type": "application/json"}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({lat: 123, lng: 123, local_hour: 123, footprint: [[123]], height: 123})
};
fetch('https://solarmoney.up.railway.app/api/shadow', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"shadow": [
[
123
]
]
}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>",
"input": "<unknown>",
"ctx": {}
}
]
}