User Tools

Site Tools


ors-soap-api:public:quicksearchhotel

Quick Search Hotel method

This method is deprecated. We will not include this method in the next API version.

Returns a list of hotels by sending query string.

Query string is a string that user enters in quick search field.

Valid content types

  • hotel
  • pauschal
  • trips

Description

public array quickSearchHotel( string $searchString, array $filter )

Parameters

  • searchString : search string (keywords)
  • filter (array) : some additional filters to be used in query.
    • [typ] (array) , a list of content types to search in. I.e. array('hotel', 'pauschal')
    • [toc] (array) , a list of tour operators
    • [lang] (String) , return language code
    • [elive_keypords] (bool) , if set to TRUE then keywords in Elive Catalog are taken into account
    • [add_giata] (bool) , if set to TRUE then all giata objects are taken into account

Return Values

Gets a list of hotels that matches query string.

Array
(
    [6713] => Array
        (
            [htn] => Hotel Delfin
            [oid] => 1266
            [hon] => Poreč
            [gid] => 6713
            [stc] => 2.0
            [rgc] => 1108
            [ids] => 14292,14293,14340,14341,14342,14347,22209,22210,22211,22212,22213,22214,22215,22216,22217,23446,23447,23448,23449,26970,26971,26972,26973,26974,26975,26976,26977,26978,40152,40153,40154,40155,40156,40157,40158,41502,41503,41504,41505,41506,41507,41508,42677,45224,45241,45242,45243,45244,45245,45246,45661,45662,45663,45664,45665,45666,45667,45922,45923,45924,45925,45926,45927,49260,49261,49262,49263,49264,49265,49266,49267,49268,49269,49270,49271,49272,49273,49274,49275,49290,49291,52663,52664,52665,52666,52667,52668,52669,52670,52673,213811,213801,213791,213781,213771,213761,213751,213741,213731,213721,55310,55311,55312,55313,55314,55315,59962,59963,59964,197761,197771,197781,197791,197851,197841,197831,197821,197811,197801
            [rgcg] => 100023
            [rggn] => HrvaĹĄka
        )

    [2221187368179] => Array
        (
            [htn] => Hotel Delfin
            [oid] => 2536
            [hon] => Izola
            [gid] => 2221187368179
            [stc] => 3.0
            [rgc] => 910200
            [ids] => 72502,72512,72522,72532,104772,192711,192721,192731,118561,118571,136481
            [rgcg] => 920000
            [rggn] => Slovenija
        )

    [1175] => Array
        (
            [htn] => Delfinia hotel
            [oid] => 2622
            [hon] => Molyvos
            [gid] => 1175
            [stc] => 3.0
            [rgc] => 49
            [ids] => 197541,197531,197521,197511,197501,197491,197481,197471,197461,197451,197441,197431,197421,197411,197401,197391,45644,45643,45612,45594,49262,49432,58242,58252,91301,91351,104531,104701,104981,104991,133751,133761,133771,133781
            [rgcg] => 100002
            [rggn] => Grčija (otoki)
        )
...
)

Return parameters

  • htn : object name
  • oid : city ID
  • hon : city name
  • gid : object GIATA ID
  • stc : category
  • rgc : region name
  • ids : a list of ORS offer ids (for internal use)
  • rgcg : region group id
  • rggn : region name

Examples

  • Example of quickSearchHotel request
$key = 'delfin';
$filter = array(
  'lang' => 'si',
  'elive_keypords' => true,
  'toc' => array('PALM','PHPL'),
  'typ'  => array('hotel', 'pauschal')
);
 
$results = $soapClient->orsxml_quick_search_api_call( 'quickSearchHotel', $key, $filter );
ors-soap-api/public/quicksearchhotel.txt · Last modified: 2016/07/13 11:56 by admin