User Tools

Site Tools


ors-soap-api:public:quicksearchregion

Quick Search Region method

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

Returns a list of regions 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 quickSearchRegion( 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

Return Values

Gets a list of regions that matches query string.

Array
(
    [946] => Array
        (
            [rgc] => 946
            [rgid] => 100023
            [rgn] => Hrvaška - Otok Pag
            [rggn] => Hrvaška
        )

    [698] => Array
        (
            [rgc] => 698
            [rgid] => 100023
            [rgn] => Otok Krk
            [rggn] => Hrvaška
        )

    [821] => Array
        (
            [rgc] => 821
            [rgid] => 100023
            [rgn] => otok Lošinj
            [rggn] => Hrvaška
        )

)

Return parameters

  • rgc : region code
  • rgid : region group id
  • rgn : region name
  • rggn : region name

Examples

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