비성(현공) 풍수 API
향 방위와 건축 기간만으로 완전한 구궁 비성도를 만들어 줘: 아홉 궁 각각의 운성, 산성, 향성과 함께 각 별의 오행, 성질, 의미까지 전부.
비성(현공) 풍수 API
방위각은 24산 중 하나로 변환되는데, 이게 시스템이 실제로 작동하는 해상도야: 각 15도, 한 구역당 세 개씩이고, 산의 음양이 별이 날아가는 방향을 결정해. 기간 수가 주어지면 엔드포인트가 운성을 중궁에 배치하고 나머지 여덟 별을 낙서 순서로 궁을 따라 날려. 그다음 좌산과 향산이 산성과 향성을 결정하고, 각각 시작 산의 음양에 따라 순행 또는 역행하는데, 대부분의 구현이 미묘하게 틀리는 규칙이 바로 이거야. 모든 궁은 세 별 전부, 각 별의 오행, 해당 기간에서 득령한지 흉한지 여부, 그리고 실무자들이 실제로 참고하는 별 조합 해석과 함께 반환돼.
POST/v1/chinese/feng-shui/flying-star
curl -X POST https://api.astroway.info/v1/chinese/feng-shui/flying-star \
-H "X-Api-Key: aw_live_..." \
-H "Content-Type: application/json" \
-d '{
"facing": 180,
"period": 8
}' {
"ok": true,
"data": {
"period": { "number": 8, "source": "given" },
"facing": { "degrees": 180, "mountain": "S2", "chinese": "午", "sector": "S", "polarity": "yin" },
"sitting": { "mountain": "N2", "chinese": "子", "sector": "N", "degrees": 0 },
"palaces": [
{
"palace": "N",
"degrees": "337.5-22.5",
"mountainStar": { "star": 9, "name": "Purple Fire", "element": "Fire", "nature": "auspicious" },
"periodStar": { "star": 4, "name": "Green Wood", "element": "Wood", "nature": "mixed" },
"facingStar": { "star": 7, "name": "Red Metal", "element": "Metal", "nature": "inauspicious" },
"pair": "9-7"
}
]
}
} Parameters
| name | type | Required | |
|---|---|---|---|
| facing | number (degrees) | yes | Compass bearing the building faces, clockwise from true north. Or send facingMountain as one of the 24 mountains. |
| period | number (1-9) | yes | Construction period. Not defaulted to the current one: a building occupied in 1998 belongs to period 7, and answering with 9 would be a confident chart for the wrong building. |
| occupiedDate | string (YYYY-MM-DD) | no | Alternative to period. The period is derived from the date of occupation. |
| language | string | no | Any of 21 codes for the element names. |
When to use it
상담 도구, 부동산 매물 기능, 인테리어 디자인 워크플로, 또는 평면도에 주석을 다는 앱 뒤에 붙여 써. 응답은 순수한 구조라서 구궁 그리드로 렌더링하거나 도면 위에 오버레이하거나 해석 레이어에 넘길 수 있어. 건물의 명반 위에 올해의 기운을 얹어야 할 때는 연간 유년성 엔드포인트와 함께 쓰고, 건물뿐 아니라 거주자까지 고려해야 할 때는 괘수(Kua number)와 조합해.
Notes
기간은 기본값 없이 필수로 요구해. 의도적인 거야: 현재 기간을 몰래 가정하면 존재하지 않는 건물에 대한 자신만만한 차트가 나오거든. 비행 방향은 시작 산의 음양을 따르고, 표는 출판된 역서 차트와 대조해 고정했어. 별 이름은 영어 풀이와 함께 한자도 그대로 실려 있어.
Try the 비성 풍수 API
Grab a key and make your first call in under a minute.