2.1.1. SEARCH BY LOCATIONS
GP Travel HUB offers several alternatives of searching hotels by location:
Search by | Description | Search example | |
---|---|---|---|
1 | City code from "GEO" context | Allows to specify city code and get hotel offers from all suppliers that are available in this city. The city code should be taken from internal list of GP Travel HUB (so-called GEO-tree). To be able to run this case from your application you need to import that GEO-tree and use location codes from it. | <Criterion> <HotelRef HotelCityCode="12175" HotelCodeContext="GEO"/> </Criterion> |
2 | City code from supplier context (one supplier) | Allows to specify city code of certain supplier and get hotel offers only from this supplier. You can use this case if you know exact location codes from suppliers and would like to get offers only from some supplier. | <Criterion> <HotelRef HotelCityCode="LON" HotelCodeContext="supplierCode"/> </Criterion> |
3 | City code from customer context | If it is agreed to support customer context, GP Travel HUB can do search by customer-specific city codes. In this case your application can provide your own city code, GP Travel HUB will resolve it via GEO-tree and send requests to all suppliers matching to this location. | <Criterion> <HotelRef HotelCityCode="LON" HotelCodeContext="ABC"/> </Criterion>
|
4 | Compound Search context | Allows to use City Code from supplier context, and then send search request to all suppliers; and vice versa, you can use City Code from GEO, and then send search request to particular supplier. Compound HotelCodeContext values like "<supplier>.GEO" or "GEO.<supplier>" are used for this. | |
When the HotelCodeContext is "<supplier>.GEO" then the HotelCityCode must be specified in supplier’s context, and then search request goes to all suppliers. | <Criterion> <HotelRef HotelCityCode="LON" HotelCodeContext="supplierCode.GEO"/> </Criterion> | ||
When the HotelCodeContext is "GEO.<supplier>" then the HotelCityCode must be specified in GEO context, and then search request goes only to the supplier specified. So, you can send request to the particular supplier, even if you don’t know supplier-specific City Code (as described in p.2 above). | <Criterion> <HotelRef HotelCityCode="12175" HotelCodeContext="GEO.supplierCode"/> </Criterion> | ||
5 | Pagination search | Allows to receive results in parts. To start a pagination search AllowPartialAvail attribute should be true in Availability request. HUB returns available offers until MoreIndicator is true on Availability response. Pagination search can be interrupted after each Availability request. If part of received offers is enough no need to send other Availability requests despite the fact that the MoreIndicator is true on Availability response. Check diagram below for case when you should receive all available offers: | You can see pagination search example after diagram below. |
Diagram 2.1.1.1. Pagination search process.
Pagination search can be interrupted after each Availability request. If part of received offers is enough no need to send other Availability requests despite the fact that the MoreIndicator is true on Availability response.
2.1.2. SEARCH BY HOTEL
Search by | Description | Search example |
---|---|---|
Hotel code from supplier context | If you already did search, you can check just availability of certain hotel. In this case you need to provide supplier city code and hotel code as a search criteria. | <Criterion> <HotelRef HotelCityCode="LON" HotelCode="157292" HotelCodeContext="supplierCode"/> </Criterion> |
Hotel Chain | Allows to perform search on chain criterion. To define the chain, there is a ChainCode attribute added to HotelRef element. Note: This functionality supported for limited suppliers. Please check with GP Travel HUB development if you are interested in specific supplier. | <Criterion> <HotelRef ChainCode="HILTO" HotelCityCode="25995" HotelCodeContext="GEO.supplierCode"/> </Criterion> |
List of hotels | Allows to perform search by list of hotel codes. Note: This functionality supported for limited suppliers. Please check with GP Travel HUB development if you are interested in specific supplier. | |
In case of search by list of hotels from one city you need to provide supplier city code and codes of each hotel as a search criteria. | <Criterion> <HotelRef HotelCityCode="3687" HotelCodeContext="supplierCode" HotelCode="e50deacb596"/> </Criterion> <Criterion> <HotelRef HotelCityCode="3687" HotelCodeContext="supplierCode" HotelCode="dd0d3e162e9"/> </Criterion> <Criterion> <HotelRef HotelCityCode="3687" HotelCodeContext="supplierCode" HotelCode="ad0d3e162e9"/> </Criterion> | |
In case of search by list of hotels from different cities you need to provide supplier city codes and codes of each hotel of appropriate city as a search criteria. | <Criterion> <HotelRef HotelCityCode="1089" HotelCodeContext="supplierCode" HotelCode="e50f345345h"/> </Criterion> <Criterion> <HotelRef HotelCityCode="3687" HotelCodeContext="supplierCode" HotelCode="dd0d3e162e9"/> </Criterion> <Criterion> <HotelRef HotelCityCode="9695" HotelCodeContext="supplierCode" HotelCode="ad04234f34v"/> </Criterion> |
2.1.3. SEARCH BY COORDINATES
Search by | Description | Search example | |
---|---|---|---|
Coordinates | Allows to perform search, specifying latitude and longitude of a point as well as radius of search. Refers to OTA Unit of Measure Code. | ||
In case of request with GEO code, search is performed by HUB in following way:
| by Geo context | <Criterion> <Position Latitude="41.69411" Longitude="44.83368"/> <HotelRef HotelCodeContext="GEO.supplierCode"/> <Radius Distance="50" UnitOfMeasureCode="2"/> </Criterion> | |
In case of request with supplier code, search is performed by HUB in following way:
| by supplier context | <Criterion> <Position Latitude="41.69411" Longitude="44.83368"/> <HotelRef HotelCodeContext="supplierCode"/> <Radius Distance="50" UnitOfMeasureCode="2"/> </Criterion> | |
Quadrangle | Allows to specify the quadrangular area of search by defining its south-west and east-north coordinates. In response HUB returns all hotels that are located into specified area. | <Criterion> <HotelRef HotelCodeContext="supplierCode"/> <MapArea EastLongitude="-0.1" NorthLatitude="51.53" SouthLatitude="51.52" WestLongitude="-0.92"/> </Criterion> |
2.1.4. SEARCH FOR MULTIPLE ROOMS REQUESTED
GP HUB allows to do an availability search for multiple rooms at one time.