curl --location 'https://us-prod.notte.cc/functions/4a5976c1-b8cb-47f7-8be1-fe5fa2c2b910/runs/start' \
--header 'x-notte-api-key: YOUR_API_KEY' \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer YOUR_API_KEY' \
--data '{
"function_id": "4a5976c1-b8cb-47f7-8be1-fe5fa2c2b910",
"variables": {
"latitude": -33.8688,
"longitude": 151.2093
}
}'
{
"all": [
{
"url": "<string>",
"name": "<string>",
"sector": "<string>",
"address": {
"state": "<string>",
"suburb": "<string>",
"postcode": "<string>"
},
"distance": {
"unit": "<string>",
"value": 0
},
"location": {
"accuracy": "<string>",
"latitude": 0,
"longitude": 0
},
"year_range": "<string>",
"school_type": "<string>"
}
],
"source": "<string>",
"primary": [
{
"url": "<string>",
"name": "<string>",
"sector": "<string>",
"address": {
"state": "<string>",
"suburb": "<string>",
"postcode": "<string>"
},
"distance": {
"unit": "<string>",
"value": 0
},
"location": {
"accuracy": "<string>",
"latitude": 0,
"longitude": 0
},
"year_range": "<string>",
"school_type": "<string>"
}
],
"latitude": 0,
"longitude": 0,
"secondary": [
{
"url": "<string>",
"name": "<string>",
"sector": "<string>",
"address": {
"state": "<string>",
"suburb": "<string>",
"postcode": "<string>"
},
"distance": {
"unit": "<string>",
"value": 0
},
"location": {
"accuracy": "<string>",
"latitude": 0,
"longitude": 0
},
"year_range": "<string>",
"school_type": "<string>"
}
]
}