龙道盘API文档(Drakonik Zodiac)
在既有接口上新增黄道模式参数 zodiac_type: "drakonik":全部黄经(行星、四轴、宫头)改为以该时刻真月亮北交点为 0° 白羊的龙道黄经。适用于 /onechart、/bichart、/trichart 全部盘型;返回结构与热带模式完全一致,仅数值口径不同。
基本信息
| 参数 | 值 |
|---|---|
| Base URL | https://chart.12sign.top |
| 接口URL | /onechart、/bichart、/trichart(参数级新增,无独立端点) |
| 请求方式 | POST |
| Content-Type | application/json |
请求参数(新增项)
| 参数名 | 类型 | 必选 | 说明 |
|---|---|---|---|
| zodiac_type | string | 否 | tropical(默认)/ sidereal / drakonik(新增) |
| sidereal_mode | string | 否 | 仅 sidereal 模式使用;zodiac_type=drakonik 时无需传(忽略) |
换算规则:龙道黄经 = 热带黄经 − 该时刻真月亮北交点黄经(逐盘按自身时刻取节点)。相位、宫位、绘图均基于换算后的黄经。
请求示例
{
"chart_type": "natal",
"data": {"datetime": "1990-09-04 14:47:00", "lat": 22.5431, "lon": 114.0579, "tz": 8},
"zodiac_type": "drakonik",
"include_svg": true
}
返回参数
与普通 /onechart 完全一致(data.planets[].longitude、data.houses、analysis、svg 等),所有黄经为龙道口径。对照示例(同盘热带 → 龙道):
| 天体 | 热带 | 龙道 |
|---|---|---|
| SUN | 11°30′ 处女座 | 4°30′ 天蝎座 |
| MOON | 1°30′ 双鱼座 | 24°31′ 白羊座 |
| TrueNode | 7°00′ 水瓶座 | 0°00′ 白羊座(定义使然) |
| ASC | 7°59′ 摩羯座 | 0°59′ 双鱼座 |
使用说明
- 相位表、SVG 相位线、尊贵分析等全部按龙道黄经计算;SVG 盘面星座环即龙道星座
- bichart / trichart 传 zodiac_type=drakonik 时内外圈全部使用龙道口径
- 与 sidereal 模式互斥:显式传 drakonik 时 sidereal_mode 被忽略
Python 调用示例
import requests
response = requests.post('https://chart.12sign.top/onechart', json={
"chart_type": "natal",
"data": {"datetime": "1990-09-04 14:47:00", "lat": 22.5431, "lon": 114.0579, "tz": 8},
"zodiac_type": "drakonik"
})
d = response.json()
sun = d['data']['planets']['SUN']
print("龙道太阳:", sun['longitude'], sun['sign'])
在线测试
请求地址:
https://chart.12sign.top/onechart
请求参数(JSON):
返回结果:
点击"发送请求"后在此显示结果