相容性
根据太阳星座元素以及两张本命盘太阳位置之间的相位,计算两张出生星盘之间的占星相容性。
所需模块
需要 compatibility:calc 模块。
计算相容性
bash
curl -X POST "https://api.astroapi.cloud/api/calc/compatibility" \
-H "X-Api-Key: your-api-key" \
-H "Content-Type: application/json" \
-d '{
"dateTime1": "1990-06-15T14:30",
"location1": {
"longitude": -0.1278,
"latitude": 51.5074,
"timezone": "Europe/London"
},
"dateTime2": "1988-03-22T09:15",
"location2": {
"longitude": 2.3522,
"latitude": 48.8566,
"timezone": "Europe/Paris"
},
"language": "en",
"includeText": true,
"includeReadableEntities": true
}'参数
| 参数 | 类型 | 必填 | 描述 |
|---|---|---|---|
dateTime1 | string | 是 | 第一人的出生日期和时间,格式为 YYYY-MM-DDTHH:mm |
location1 | object | 是 | 第一人的出生地点(经度、纬度、时区) |
dateTime2 | string | 是 | 第二人的出生日期和时间,格式为 YYYY-MM-DDTHH:mm |
location2 | object | 是 | 第二人的出生地点(经度、纬度、时区) |
language | string | 否 | 文本内容的语言代码(默认:"en") |
includeText | boolean | 否 | 包含解读文本(默认:false) |
includeReadableEntities | boolean | 否 | 包含人类可读的星座标题(默认:false) |
地点对象
json
{
"longitude": -0.1278,
"latitude": 51.5074,
"timezone": "Europe/London"
}响应
json
{
"data": {
"sign1": "gemini",
"sign2": "aries",
"scoreBasedOnElement": 80,
"scoreBasedOnSunAspect": 85,
"sign1Title": "Gemini",
"sign2Title": "Aries",
"text": "Gemini and Aries form a lively and stimulating combination. Both signs are drawn to new ideas and fast-paced experiences. Aries brings passion and directness while Gemini adds wit and versatility..."
}
}响应字段
| 字段 | 类型 | 描述 |
|---|---|---|
sign1 | string | 第一人的黄道星座 |
sign2 | string | 第二人的黄道星座 |
scoreBasedOnElement | number | 基于元素亲和力的相容性评分(0–100) |
scoreBasedOnSunAspect | number | 基于精确太阳-太阳相位的相容性评分(0–100) |
sign1Title | string | null | 人类可读的星座名称(仅当 includeReadableEntities: true 时) |
sign2Title | string | null | 人类可读的星座名称(仅当 includeReadableEntities: true 时) |
text | string | null | 解读文本(仅当 includeText: true 时) |
评分方法
基于元素的评分
根据两个太阳星座之间的元素关系评估相容性:
| 关系 | 评分 | 星座组合 |
|---|---|---|
| 相同元素 | 90 | 火+火、土+土、风+风、水+水 |
| 相容元素 | 80 | 火+风、土+水 |
| 中性元素 | 65 | 火+土、风+水 |
| 挑战性元素 | 50 | 火+水、土+风 |
太阳相位评分
相容性还根据两个本命太阳位置之间的精确相位进行评估:
| 相位 | 评分 | 备注 |
|---|---|---|
| 合相(0°) | 95 | 同一度数,强力连接 |
| 三合相(120°) | 92 | 自然和谐与轻松 |
| 六合相(60°) | 85 | 友好且相互支持 |
| 对分相(180°) | 70 | 有张力的磁性吸引 |
| 刑相(90°) | 55 | 充满活力但具有挑战性 |
| 梅花相(150°) | 45 | 需要调整和成长 |
两种评分
元素评分基于传统星座亲和力提供快速概览。太阳相位评分更为精确,因为它是根据两个本命太阳的精确度数计算的,对具体个人而言是独特的,而不仅仅取决于他们的星座。
元素分组
| 元素 | 星座 |
|---|---|
| 火 | 白羊座、狮子座、射手座 |
| 土 | 金牛座、处女座、摩羯座 |
| 风 | 双子座、天秤座、水瓶座 |
| 水 | 巨蟹座、天蝎座、双鱼座 |
深入分析
如需进行更全面的相容性分析,请考虑使用合盘端点,它可以计算两张星盘中所有行星之间的星际相位,并提供宫位叠加分析。