Horoscope house position json php script

Kundli Birth Chart
Birth Chart
4 5 Ma6 Su Me7 Ve8 Mo Ke9 10 11 12 1 Ju Sa2 Ra3
Php plantery position script

example

/* config Delhi, India ------------ latitude=28.36 longitude=77.12 time offset= +05:30 Date Time = YYYY-MM-DD HH:II:SS Language = HI | EN Ayan = lohri | kp $array=['lat'=>28.36,'lon'=>77.12,'to'=>'+05:30','d'=>'2000-11-02','t'=>'22:55:00']; if(isset($_SESSION['api'])) $api=json_decode($_SESSION['api'],true); else{ $api=file_get_contents(https://vishvsahdev.com/api/planetary-position/?lat=28.36&lon=77.12&to=%2B05%3A30&d=2000-11-02&t=22%3A55%3A00); $_SESSIOM['api']=json_encode($api); } --------------------------------------------------------------------------------- [records] [3] => Array // 3rd house ( [0] => 6 //Rashi [1] => Array ( [0] => Ma //planet ) [2] => Array ( [Ma] => 155.29884122535 //degree ) [3] => Array ( [Ma] => Array ( [0] => 10 // [1] => 5 // मंगल की अपने घर दसमा और पांचवा ) ) [4] => Array ( [Ma] => Array ( [4] => 6 // मंगल की चौथी दृष्टि छठे घर पर [7] => 9 // [8] => 10 //मंगल की आठवीं दृष्टि दसवें घर पर ) ) [5] => Array // drishti ( [Ma] => Array ( [4] => Array ( [0] => 245.29884122535 [1] => 260.29884122535 [2] => 275.29884122535 [3] => उच्च की और 79.05% [4] => Ve ) [7] => Array ( [0] => 335.29884122535 [1] => 350.29884122535 [2] => 5.2988412253472 [3] => नीच की और 29.05% [4] => Me ) [8] => Array ( [0] => 5.2988412253472 [1] => 20.298841225347 [2] => 35.298841225347 [3] => स्वराशि 45.72% [4] => Ve ) ) ) [6] => Array ( [0] => 6 //rashi [1] => Me // rashi lord [2] => 150.001 // longitude [3] => 2 //pada [4] => 12 // nakshtra [5] => Su // nakshtra lord [6] => Ra // sub lord [7] => Sa // sub sub [8] => 4 //rashi ka swami (Me) 4 house mei [9] => 12 // ) [7] => Array ( [0] => Ma ) [dri_in] => Array ( [Ju] => 5 // तीसरे घर पर गुरु की पांचवी दृष्टि ) ) ---------------------------------------------------- */
Json PHP

Array
(
    [records] => Array
        (
            [1] => Array
                (
                    [0] => 4
                    [1] => Array
                        (
                        )

                    [2] => Array
                        (
                        )

                    [3] => Array
                        (
                        )

                    [4] => Array
                        (
                        )

                    [5] => Array
                        (
                        )

                    [6] => Array
                        (
                            [0] => 4
                            [1] => Mo
                            [2] => 90.001
                            [3] => 4
                            [4] => 7
                            [5] => Ju
                            [6] => Mo
                            [7] => Sa
                            [8] => 6
                            [9] => 8
                        )

                    [7] => Array
                        (
                        )

                    [dri_in] => Array
                        (
                            [Sa] => 3
                        )

                )

            [2] => Array
                (
                    [0] => 5
                    [1] => Array
                        (
                        )

                    [2] => Array
                        (
                        )

                    [3] => Array
                        (
                        )

                    [4] => Array
                        (
                        )

                    [5] => Array
                        (
                        )

                    [6] => Array
                        (
                            [0] => 5
                            [1] => Su
                            [2] => 120.001
                            [3] => 1
                            [4] => 10
                            [5] => Ke
                            [6] => Ke
                            [7] => Ke
                            [8] => 4
                            [9] => 11
                        )

                    [7] => Array
                        (
                        )

                )

            [3] => Array
                (
                    [0] => 6
                    [1] => Array
                        (
                            [0] => Ma
                        )

                    [2] => Array
                        (
                            [Ma] => 155.29884122535
                        )

                    [3] => Array
                        (
                            [Ma] => Array
                                (
                                    [0] => 10
                                    [1] => 5
                                )

                        )

                    [4] => Array
                        (
                            [Ma] => Array
                                (
                                    [4] => 6
                                    [7] => 9
                                    [8] => 10
                                )

                        )

                    [5] => Array
                        (
                            [Ma] => Array
                                (
                                    [4] => Array
                                        (
                                            [0] => 245.29884122535
                                            [1] => 260.29884122535
                                            [2] => 275.29884122535
                                            [3] => उच्च  की और  79.05%
                                            [4] => Ve
                                        )

                                    [7] => Array
                                        (
                                            [0] => 335.29884122535
                                            [1] => 350.29884122535
                                            [2] => 5.2988412253472
                                            [3] =>  नीच की और  29.05%
                                            [4] => Me
                                        )

                                    [8] => Array
                                        (
                                            [0] => 5.2988412253472
                                            [1] => 20.298841225347
                                            [2] => 35.298841225347
                                            [3] => स्वराशि  45.72%
                                            [4] => Ve
                                        )

                                )

                        )

                    [6] => Array
                        (
                            [0] => 6
                            [1] => Me
                            [2] => 150.001
                            [3] => 2
                            [4] => 12
                            [5] => Su
                            [6] => Ra
                            [7] => Sa
                            [8] => 4
                            [9] => 12
                        )

                    [7] => Array
                        (
                            [0] => Ma
                        )

                    [dri_in] => Array
                        (
                            [Ju] => 5
                        )

                )

            [4] => Array
                (
                    [0] => 7
                    [1] => Array
                        (
                            [0] => Su Me
                        )

                    [2] => Array
                        (
                            [Su] => 196.7340976625
                            [Me] => 188.78451876736
                        )

                    [3] => Array
                        (
                            [Su] => Array
                                (
                                    [0] => 2
                                )

                            [Me] => Array
                                (
                                    [0] => 12
                                    [1] => 3
                                )

                        )

                    [4] => Array
                        (
                            [Su] => Array
                                (
                                    [7] => 10
                                )

                            [Me] => Array
                                (
                                    [7] => 10
                                )

                        )

                    [5] => Array
                        (
                            [Su] => Array
                                (
                                    [7] => Array
                                        (
                                            [0] => 16.7340976625
                                            [1] => 31.7340976625
                                            [2] => 46.7340976625
                                            [3] =>  नीच की और  12.07%
                                            [4] => Su
                                        )

                                )

                            [Me] => Array
                                (
                                    [7] => Array
                                        (
                                            [0] => 8.7845187673611
                                            [1] => 23.784518767361
                                            [2] => 38.784518767361
                                            [3] => उच्च  की और  21.55%
                                            [4] => Ve
                                        )

                                )

                        )

                    [6] => Array
                        (
                            [0] => 7
                            [1] => Ve
                            [2] => 180.001
                            [3] => 3
                            [4] => 14
                            [5] => Ma
                            [6] => Me
                            [7] => Me
                            [8] => 5
                            [9] => 12
                        )

                    [7] => Array
                        (
                            [0] => Su
                            [1] => Me
                        )

                )

            [5] => Array
                (
                    [0] => 8
                    [1] => Array
                        (
                            [0] => Ve
                        )

                    [2] => Array
                        (
                            [Ve] => 233.65371715764
                        )

                    [3] => Array
                        (
                            [Ve] => Array
                                (
                                    [0] => 11
                                    [1] => 4
                                )

                        )

                    [4] => Array
                        (
                            [Ve] => Array
                                (
                                    [7] => 11
                                )

                        )

                    [5] => Array
                        (
                            [Ve] => Array
                                (
                                    [7] => Array
                                        (
                                            [0] => 53.653717157639
                                            [1] => 68.653717157639
                                            [2] => 83.653717157639
                                            [3] =>  नीच की और  39.81%
                                            [4] => Ra
                                        )

                                )

                        )

                    [6] => Array
                        (
                            [0] => 8
                            [1] => Ma
                            [2] => 210.001
                            [3] => 4
                            [4] => 16
                            [5] => Ju
                            [6] => Mo
                            [7] => Sa
                            [8] => 3
                            [9] => 3
                        )

                    [7] => Array
                        (
                            [0] => Ve
                        )

                    [dri_in] => Array
                        (
                            [Ju] => 7
                            [Sa] => 7
                        )

                )

            [6] => Array
                (
                    [0] => 9
                    [1] => Array
                        (
                            [0] => Mo Ke
                        )

                    [2] => Array
                        (
                            [Mo] => 269.64363364306
                            [Ke] => 264.95997432153
                        )

                    [3] => Array
                        (
                            [Mo] => Array
                                (
                                    [0] => 1
                                )

                            [Ke] => Array
                                (
                                    [0] => 6
                                )

                        )

                    [4] => Array
                        (
                            [Mo] => Array
                                (
                                    [7] => 12
                                )

                            [Ke] => Array
                                (
                                    [7] => 12
                                )

                        )

                    [5] => Array
                        (
                            [Mo] => Array
                                (
                                    [7] => Array
                                        (
                                            [0] => 89.643633643056
                                            [1] => 104.64363364306
                                            [2] => 119.64363364306
                                            [3] =>  नीच की और  39.80%
                                            [4] => Sa
                                        )

                                )

                            [Ke] => Array
                                (
                                    [7] => Array
                                        (
                                            [0] => 84.959974321528
                                            [1] => 99.959974321528
                                            [2] => 114.95997432153
                                            [3] => उच्च  की और  27.76%
                                            [4] => Sa
                                        )

                                )

                        )

                    [6] => Array
                        (
                            [0] => 9
                            [1] => Ju
                            [2] => 240.001
                            [3] => 1
                            [4] => 19
                            [5] => Ke
                            [6] => Ke
                            [7] => Ke
                            [8] => 11
                            [9] => 8
                        )

                    [7] => Array
                        (
                            [0] => Mo
                            [1] => Ke
                        )

                    [dri_in] => Array
                        (
                            [Ma] => 4
                            [Ra] => 7
                        )

                )

            [7] => Array
                (
                    [0] => 10
                    [1] => Array
                        (
                        )

                    [2] => Array
                        (
                        )

                    [3] => Array
                        (
                        )

                    [4] => Array
                        (
                        )

                    [5] => Array
                        (
                        )

                    [6] => Array
                        (
                            [0] => 10
                            [1] => Sa
                            [2] => 270.001
                            [3] => 2
                            [4] => 21
                            [5] => Su
                            [6] => Ra
                            [7] => Sa
                            [8] => 11
                            [9] => 9
                        )

                    [7] => Array
                        (
                        )

                    [dri_in] => Array
                        (
                            [Ju] => 9
                        )

                )

            [8] => Array
                (
                    [0] => 11
                    [1] => Array
                        (
                        )

                    [2] => Array
                        (
                        )

                    [3] => Array
                        (
                        )

                    [4] => Array
                        (
                        )

                    [5] => Array
                        (
                        )

                    [6] => Array
                        (
                            [0] => 11
                            [1] => Sa
                            [2] => 300.001
                            [3] => 3
                            [4] => 23
                            [5] => Ma
                            [6] => Me
                            [7] => Me
                            [8] => 11
                            [9] => 10
                        )

                    [7] => Array
                        (
                        )

                    [dri_in] => Array
                        (
                            [Sa] => 10
                        )

                )

            [9] => Array
                (
                    [0] => 12
                    [1] => Array
                        (
                        )

                    [2] => Array
                        (
                        )

                    [3] => Array
                        (
                        )

                    [4] => Array
                        (
                        )

                    [5] => Array
                        (
                        )

                    [6] => Array
                        (
                            [0] => 12
                            [1] => Ju
                            [2] => 330.001
                            [3] => 4
                            [4] => 25
                            [5] => Ju
                            [6] => Mo
                            [7] => Sa
                            [8] => 11
                            [9] => 11
                        )

                    [7] => Array
                        (
                        )

                    [dri_in] => Array
                        (
                            [Ma] => 7
                        )

                )

            [10] => Array
                (
                    [0] => 1
                    [1] => Array
                        (
                        )

                    [2] => Array
                        (
                        )

                    [3] => Array
                        (
                        )

                    [4] => Array
                        (
                        )

                    [5] => Array
                        (
                        )

                    [6] => Array
                        (
                            [0] => 1
                            [1] => Ma
                            [2] => 0.00099999999997635
                            [3] => 1
                            [4] => 1
                            [5] => Ke
                            [6] => Ke
                            [7] => Ke
                            [8] => 3
                            [9] => 8
                        )

                    [7] => Array
                        (
                        )

                    [dri_in] => Array
                        (
                            [Ma] => 8
                            [Su] => 7
                            [Me] => 7
                        )

                )

            [11] => Array
                (
                    [0] => 2
                    [1] => Array
                        (
                            [0] => Ju
                            [1] => Sa
                        )

                    [2] => Array
                        (
                            [Ju] => 45.480156271181
                            [Sa] => 34.960770563194
                        )

                    [3] => Array
                        (
                            [Ju] => Array
                                (
                                    [0] => 6
                                    [1] => 9
                                )

                            [Sa] => Array
                                (
                                    [0] => 7
                                    [1] => 8
                                )

                        )

                    [4] => Array
                        (
                            [Ju] => Array
                                (
                                    [5] => 3
                                    [7] => 5
                                    [9] => 7
                                )

                            [Sa] => Array
                                (
                                    [3] => 1
                                    [7] => 5
                                    [10] => 8
                                )

                        )

                    [5] => Array
                        (
                            [Ju] => Array
                                (
                                    [5] => Array
                                        (
                                            [0] => 165.48015627118
                                            [1] => 180.48015627118
                                            [2] => 195.48015627118
                                            [3] =>  नीच की और  47.49%
                                            [4] => Ma
                                        )

                                    [7] => Array
                                        (
                                            [0] => 225.48015627118
                                            [1] => 240.48015627118
                                            [2] => 255.48015627118
                                            [3] => मूलत्रिकोण  80.82%
                                            [4] => Ke
                                        )

                                    [9] => Array
                                        (
                                            [0] => 285.48015627118
                                            [1] => 300.48015627118
                                            [2] => 315.48015627118
                                            [3] => उच्च  की और  14.16%
                                            [4] => Ma
                                        )

                                )

                            [Sa] => Array
                                (
                                    [3] => Array
                                        (
                                            [0] => 94.960770563194
                                            [1] => 109.96077056319
                                            [2] => 124.96077056319
                                            [3] => उच्च  की और  49.98%
                                            [4] => Me
                                        )

                                    [7] => Array
                                        (
                                            [0] => 214.96077056319
                                            [1] => 229.96077056319
                                            [2] => 244.96077056319
                                            [3] =>  नीच की और  16.64%
                                            [4] => Me
                                        )

                                    [10] => Array
                                        (
                                            [0] => 304.96077056319
                                            [1] => 319.96077056319
                                            [2] => 334.96077056319
                                            [3] => मूलत्रिकोण  66.64%
                                            [4] => Ra
                                        )

                                )

                        )

                    [6] => Array
                        (
                            [0] => 2
                            [1] => Ve
                            [2] => 30.001
                            [3] => 2
                            [4] => 3
                            [5] => Su
                            [6] => Ra
                            [7] => Sa
                            [8] => 5
                            [9] => 7
                        )

                    [7] => Array
                        (
                            [0] => Ju
                            [1] => Sa
                        )

                    [dri_in] => Array
                        (
                            [Ve] => 7
                        )

                )

            [12] => Array
                (
                    [0] => 3
                    [1] => Array
                        (
                            [0] => Ra
                        )

                    [2] => Array
                        (
                            [Ra] => 84.959974321528
                        )

                    [3] => Array
                        (
                            [Ra] => Array
                                (
                                    [0] => 12
                                )

                        )

                    [4] => Array
                        (
                            [Ra] => Array
                                (
                                    [7] => 6
                                )

                        )

                    [5] => Array
                        (
                            [Ra] => Array
                                (
                                    [7] => Array
                                        (
                                            [0] => 264.95997432153
                                            [1] => 279.95997432153
                                            [2] => 294.95997432153
                                            [3] => उच्च  की और  27.76%
                                            [4] => Su
                                        )

                                )

                        )

                    [6] => Array
                        (
                            [0] => 3
                            [1] => Me
                            [2] => 60.001
                            [3] => 3
                            [4] => 5
                            [5] => Ma
                            [6] => Me
                            [7] => Me
                            [8] => 4
                            [9] => 9
                        )

                    [7] => Array
                        (
                            [0] => Ra
                        )

                    [rulling] => Array
                        (
                            [2] => Ju
                            [3] => Sa
                            [5] => Ke
                        )

                    [dri_in] => Array
                        (
                            [Mo] => 7
                            [Ke] => 7
                        )

                )

        )

    [info] => Array
        (
            [dt] => 2000-11-2 22:55:0
            [lat] => 28.36
            [lon] => 77.12
            [to] => +05:30
        )

    [response] => 200
    [rows] => 12
)