UDDS CLIENT - API Documentation version 4.01 ( 2022.04.22 )

About UDDS Client

Complex types

Properties

Methods

Online booking and payments

Download

udds->getRegionsList ( function )


Description :

  • Call : udds->getRegionsList ( $debugParams )
  • Class element : method / function
  • Result : array
  • This function uses the following properties : udds->searchParams


Using this function you can obtain data for "regions list".

Parameters :

Optional only in debugging mode by KSI.

Example

<?php

    //
    // example file
    // 
    require_once ( 'classUdds.php' ) ;    
    $udds = new classUdds ;
    
    $udds->myLogin = [ Your UDDS Login ] ;
    $udds->myConfigId = [ Your UDDS ConfigId ] ;
    $udds->srvUrl = [ Your UDDS Server ] ;

    $udds->searchParams = array() ;
    $udds->searchParams [ 'country' ] = array ( 'Australia', 'Meksyk', 'Egipt' ) ;
    $udds->searchParams [ 'adults' ] = 2 ;
    
    $data = $udds->getRegionsList () ;
    
    print_r ( $data ) ;
    
    unset ( $udds ) ;

?>

Live mode example:

Array
(
    [Egipt] => Array
        (
            [Marsa Alam] => Array
                (
                    [price_from] => 18900
                    [gps] => Array
                        (
                            [latitude] => 25.0768
                            [longitude] => 34.8917
                            [altitude] => 0
                        )

                    [flightTime] => 04:30:00
                )

            [Hurghada] => Array
                (
                    [price_from] => 21900
                    [gps] => Array
                        (
                            [latitude] => 27.3905
                            [longitude] => 33.6771
                            [altitude] => 0
                        )

                    [flightTime] => 00:00:00
                    [weather] => Array
                        (
                            [air] => Array
                                (
                                    [1] => 22
                                    [2] => 23
                                    [3] => 26
                                    [4] => 30
                                    [5] => 32
                                    [6] => 36
                                    [7] => 36
                                    [8] => 37
                                    [9] => 35
                                    [10] => 31
                                    [11] => 27
                                    [12] => 24
                                    [now] => 24
                                )

                        )

                )

            [Sharm El Sheikh] => Array
                (
                    [price_from] => 121400
                    [gps] => Array
                        (
                            [latitude] => 27.8647
                            [longitude] => 34.2935
                            [altitude] => 0
                        )

                    [flightTime] => 04:00:00
                    [weather] => Array
                        (
                            [air] => Array
                                (
                                    [1] => 22
                                    [2] => 24
                                    [3] => 26
                                    [4] => 30
                                    [5] => 33
                                    [6] => 37
                                    [7] => 37
                                    [8] => 38
                                    [9] => 35
                                    [10] => 32
                                    [11] => 28
                                    [12] => 24
                                    [now] => 24
                                )

                        )

                )

            [Dahab] => Array
                (
                    [price_from] => 163800
                    [gps] => Array
                        (
                            [latitude] => 28.5097
                            [longitude] => 34.5142
                            [altitude] => 0
                        )

                    [flightTime] => 04:00:00
                )

            [Wyc. Objazdowe] => Array
                (
                    [price_from] => 177800
                    [gps] => Array
                        (
                            [latitude] => 
                            [longitude] => 
                            [altitude] => 0
                        )

                    [flightTime] => 00:00:00
                )

            [Kair] => Array
                (
                    [price_from] => 262800
                    [gps] => Array
                        (
                            [latitude] => 30.0548
                            [longitude] => 31.2408
                            [altitude] => 0
                        )

                    [flightTime] => 00:00:00
                )

        )

    [Meksyk] => Array
        (
            [Riviera Maya] => Array
                (
                    [price_from] => 283900
                    [gps] => Array
                        (
                            [latitude] => 20.6313
                            [longitude] => -87.0731
                            [altitude] => 0
                        )

                    [flightTime] => 00:00:00
                    [weather] => Array
                        (
                            [air] => Array
                                (
                                    [1] => 25
                                    [2] => 25
                                    [3] => 26
                                    [4] => 28
                                    [5] => 29
                                    [6] => 30
                                    [7] => 30
                                    [8] => 31
                                    [9] => 30
                                    [10] => 28
                                    [11] => 27
                                    [12] => 26
                                    [now] => 26
                                )

                        )

                )

            [Cancun] => Array
                (
                    [price_from] => 301900
                    [gps] => Array
                        (
                            [latitude] => 21.1478
                            [longitude] => -86.835
                            [altitude] => 0
                        )

                    [flightTime] => 11:00:00
                    [weather] => Array
                        (
                            [air] => Array
                                (
                                    [1] => 25
                                    [2] => 25
                                    [3] => 26
                                    [4] => 28
                                    [5] => 29
                                    [6] => 30
                                    [7] => 30
                                    [8] => 31
                                    [9] => 30
                                    [10] => 28
                                    [11] => 27
                                    [12] => 26
                                    [now] => 26
                                )

                        )

                )

            [Wyc. Objazdowe] => Array
                (
                    [price_from] => 885100
                    [gps] => Array
                        (
                            [latitude] => 
                            [longitude] => 
                            [altitude] => 0
                        )

                    [flightTime] => 00:00:00
                )

        )

    [Australia] => Array
        (
            [Wyc. Objazdowe] => Array
                (
                    [price_from] => 1829900
                    [gps] => Array
                        (
                            [latitude] => 
                            [longitude] => 
                            [altitude] => 0
                        )

                    [flightTime] => 00:00:00
                )

        )

)

KSI Media ( www.ksimedia.pl ) - technical contact : maciej.szczepanski@ksimedia.pl