/v1/nearby
Nearest observatories to a point
Probeer het live
10 gratis calls per dag — geen registratie, geen API-key. Loopt via de oanor-gateway.
Het werkt. Haal een API-key op en gebruik hem in je project.
Verkrijg een API-sleutelCodefragmenten
curl "https://api.oanor.com/observatories-api/v1/nearby" \ -H "x-oanor-key: oanor_test_..."
await fetch("https://api.oanor.com/observatories-api/v1/nearby", {
headers: { "x-oanor-key": "oanor_test_..." }
});
$ch = curl_init("https://api.oanor.com/observatories-api/v1/nearby");
curl_setopt($ch, CURLOPT_HTTPHEADER, ["x-oanor-key: oanor_test_..."]);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
$out = curl_exec($ch);
import requests
requests.get(
"https://api.oanor.com/observatories-api/v1/nearby",
headers={"x-oanor-key": "oanor_test_..."}
)
Voorbeeldrespons
Een echte respons van dit endpoint, vastgelegd bij de laatste health check.
{
"data": {
"lat": -24.6,
"lon": -70.4,
"count": 10,
"observatories": [
{
"code": "309",
"name": "Cerro Paranal",
"latitude": -24.4818,
"lon_east": 289.5957,
"longitude": -70.4043,
"distance_km": 13.2,
"rho_cos_phi": 0.909943,
"rho_sin_phi": -0.414336,
"has_location": true
},
{
"code": "X11",
"name": "VLT Survey Telescope, Paranal",
"latitude": -24.4809,
"lon_east": 289.596,
"longitude": -70.404,
"distance_km": 13.2,
"rho_cos_phi": 0.909953,
"rho_sin_phi": -0.414324,
"has_location": true
},
{
"code": "W75",
"name": "SPECULOOS-South Observatory, Paranal",
"latitude": -24.4707,
"lon_east": 289.6094,
"longitude": -70.3906,
"distance_km": 14.4,
"rho_cos_phi": 0.910001,
"rho_sin_phi": -0.41415,
"has_location": true
},
{
"code": "W91",
"name": "VHS-VISTA, Cerro Paranal",
"latitude": -24.4705,
"lon_east": 289.6026,
"longitude": -70.3974,
"distance_km": 14.4,
"rho_cos_phi": 0.910007,
"rho_sin_phi": -0.414148,
"has_location": true
},
{
"code": "I09",
"name": "Cerro Armazones",
"latitude": -24.4525,
"lon_east": 289.8038,
"longitude": -70.1962,
"distance_km": 26.3,
"rho_cos_phi": 0.910166,
"rho_sin_phi": -0.413875,
"has_location": true
},
{
"code": "W96",
"name": "CAO, San Pedro de Atacama (since 2013)",
"latitude": -22.8157,
"lon_east": 291.8201,
"longitude": -68.1799,
"distance_km": 300.7,
"rho_cos_phi": 0.921637,
"rho_sin_phi": -0.387717,
"has_location": true
},
{
"code": "G32",
"name": "Elena Remote Observatory, San Pedro de Atacama",
"latitude": -22.8154,
"lon_east": 291.8204,
"longitude": -68.1796,
"distance_km": 300.8,
"rho_cos_phi": 0.921639,
"rho_sin_phi": -0.387713,
"has_location": true
},
{
"code": "G39",
"name": "ROAD, San Pedro de Atacama",
"latitude": -22.8153,
"lon_east": 291.820
…