/v1/acg-lines
API-Key noetig Kartografie Astrokartographie-Linien (MC/IC/AC/DC + Aspektlinien) als Weltkarten-Polylinien.
Beschreibung
Berechnet fuer jeden Koerper die vier ACG-Linien des Geburtsmoments: MC/IC als Meridiane, AC/DC als Horizontkurven (H-Parametrisierung — Nahtstellen mathematisch exakt, an der Datumsgrenze gesplittet). Optional Aspektlinien (z. B. 120° zu AC) zu den vier Achsen. RA/Dec aus scheinbaren Oertern der Swiss Ephemeris, GAST aus swe_sidtime. Segmente als [[lat,lon],…] — direkt in Leaflet & Co. zeichenbar. Portierung der getesteten Werkstatt-ACG-Geometrie.
Parameter
| Name | In | Typ | Pflicht | Beschreibung |
|---|---|---|---|---|
birth |
body | object | ja | {datetime, timezone, location{latitude, longitude}}. |
bodies |
body | array | nein | Max. 16. Default: Sonne..Pluto + Chiron + true_node. |
line_types |
body | array | nein | Teilmenge von ["mc","ic","ac","dc"]. Default alle. |
aspects |
body | object | nein | {angles:[60,90,120,…] (1..6 Winkel), targets:["mc","ac",…]} — erzeugt je Winkel beide Richtungen (±). |
step_degrees |
body | number | nein | Kurven-Aufloesung in Stundenwinkel-Grad (0.1..2). Default 0.5 (~361 Punkte/Kurve). |
Beispiel-Aufruf
curl -sS \
-H "X-API-Key: ak_test_<DEIN_KEY>" \
-H "Content-Type: application/json" \
-X POST \
-d '{
"birth": {
"datetime": "1987-06-21T04:30:00",
"timezone": "Europe/Berlin",
"location": {
"latitude": 48.137,
"longitude": 11.575
}
},
"bodies": [
"sun"
]
}' \
"https://astroapi.services/v1/acg-lines"
<?php
$ch = curl_init("https://astroapi.services/v1/acg-lines");
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_HTTPHEADER, ["X-API-Key: ak_test_<DEIN_KEY>", "Content-Type: application/json"]);
curl_setopt($ch, CURLOPT_POST, true);
curl_setopt($ch, CURLOPT_POSTFIELDS, '{"birth":{"datetime":"1987-06-21T04:30:00","timezone":"Europe/Berlin","location":{"latitude":48.137,"longitude":11.575}},"bodies":["sun"]}');
$response = json_decode(curl_exec($ch), true);
curl_close($ch);
print_r($response);
<?php
require 'astroapi-client.php';
$api = new AstroApiClient('ak_test_<DEIN_KEY>');
$response = $api->acgLines([
'birth' => [
'datetime' => '1987-06-21T04:30:00',
'timezone' => 'Europe/Berlin',
'location' => [
'latitude' => 48.137,
'longitude' => 11.575,
],
],
'bodies' => [
'sun',
],
]);
print_r($response);
const response = await fetch('https://astroapi.services/v1/acg-lines', {
method: 'POST',
headers: { 'X-API-Key': 'ak_test_<DEIN_KEY>', 'Content-Type': 'application/json' },
body: JSON.stringify({
"birth": {
"datetime": "1987-06-21T04:30:00",
"timezone": "Europe/Berlin",
"location": {
"latitude": 48.137,
"longitude": 11.575
}
},
"bodies": [
"sun"
]
}),
});
const data = await response.json();
console.log(data);
import { AstroApiClient } from './astroapi-client.js';
const api = new AstroApiClient('ak_test_<DEIN_KEY>');
const response = await api.acgLines({
"birth": {
"datetime": "1987-06-21T04:30:00",
"timezone": "Europe/Berlin",
"location": {
"latitude": 48.137,
"longitude": 11.575
}
},
"bodies": [
"sun"
]
});
console.log(response);
import requests
url = 'https://astroapi.services/v1/acg-lines'
headers = {'X-API-Key': 'ak_test_<DEIN_KEY>'}
payload = {
"birth": {
"datetime": "1987-06-21T04:30:00",
"timezone": "Europe/Berlin",
"location": {
"latitude": 48.137,
"longitude": 11.575
}
},
"bodies": [
"sun"
]
}
response = requests.post(url, headers=headers, json=payload)
print(response.json())
from astroapi_client import AstroApiClient
api = AstroApiClient('ak_test_<DEIN_KEY>')
response = api.acg_lines({
'birth': {
'datetime': '1987-06-21T04:30:00',
'timezone': 'Europe/Berlin',
'location': {
'latitude': 48.137,
'longitude': 11.575,
},
},
'bodies': [
'sun',
],
})
print(response)