// astrology api · POST /v1/chinese/feng-shui/flying-star
飛行星 (Xuan Kong) 風水 API
向き方と建物の期間で、9宮格の飛行星チャートが完成します: 各宮格の期間星、山星、向き星、要素、性質、意味など。
Endpoint
POST /v1/chinese/feng-shui/flying-star
Cost
10 credits
Latency
~70 ms
Tier
Tier 1
// 01 / What it computes
飛行星 (Xuan Kong) 風水 API
方位は24の山に解決されます: 実際にシステムが動作する解決策は15度ずつ、各宮格に3つあり、山の極性は星が飛ぶ方向を決めます。期間番号からエンドポイントは期間星を中心に置き、残りの8つは Luo Shu の順序で宮格を飛びます。座席と向きの山は山星と向き星を決定し、それぞれ山の極性に従って前方または後方に飛びます。これが実装の多くが間違って理解しているルールです。各宮格には3つの星、要素、期間中の各星が時期的か否か、そして実際に専門家が使用するペア読みが含まれます。
// 02 / Live request
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
}' Response (excerpt)
{
"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"
}
]
}
} // 03 / Parameters
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. |
// 04 / When to use it
When to use it
コンサルタントツール、物件リスト機能、インテリアデザインワークフロー、フロアプランに注釈を付けるアプリなどに使用してください。レスポンスは純粋な構造なので、9宮格のグリッドとしてレンダリングすることもできます。現在の年を建物のnatalチャートに重ねる場合は、annual starsエンドポイントと組み合わせてください。また、読みに占屋の数が必要な場合は、Kua numberと組み合わせてください。
// 05 / Notes
Notes
期間は必須です: 静かに現在の期間を仮定すると、存在しない建物に自信を持ったチャートが生成されます。飛行方向は開始山の極性に従います。表は出版された暦チャートに固定されています。星の名前には中国語の文字が付いています。
Try the 飛行星風水 API
Grab a key and make your first call in under a minute.