In all use cases, the Actor is the developer implementing the interface between the TripServices APIs and your company's application that provides travel results to your company's end users. Actors here are not searching/booking travel for themselves but instead are implementing this data handling for input from your company's travel customers.
This use case details a search request for properties within a specified radius around Charles de Gaulle airport (IATA code CDG).
| Prerequisites | Next steps |
|---|---|
To proceed with booking:
|
See the TripServices Stays APIs Guide for more about the Hotel Search APIs. SearchComplete is not yet available to customers.
| Action | Goals and steps | Code Example |
|---|---|---|
Request |
| "propertyFilter": { "location": { "type": "airportIATACode", "details": { "iataCode": "CDG" }, "radius": { "value": 5, "unit": "mi" } } } |
Response | Depending on availability and search criteria, SearchComplete returns several instances of the object hotelsResponse/propertyItems. Each instance of propertyItems is a specific room available at a specified rate. In each instance, the property location is returned in the propertyInfo object, which returns multiple types of geographic details:
| "propertyInfo": { "geolocation": { "center": { "latitude": 48.8714, "longitude": 2.3434 } }, "distanceFromSearchPoint": { "unitOfDistance": "Miles", "value": 0 }, "address": { "street": "30-32 BOULEVARD POISSONNI RE", "city": "PARIS", "countryCode": "FR", "postalCode": "75009" }, }, |
See the TripServices Stays APIs Guide for more about the Hotel Search APIs.
| Action | Goals and steps | Code Example |
|---|---|---|
Request | To search by airport:
| "SearchBy": { "@type": "SearchByAirport", "SearchRadius": { "value": 25, "unitOfDistance": "Miles" }, "SearchAirport": "CDG" } |
Response | Depending on availability and search criteria, the Search by Location API returns several instances of the object Properties/PropertyInfo. Each instance of PropertyInfo is a specific room available at a specified rate. In each instance, the property location is returned in the GeoLocation and Address objects. Per the example, location data shows the geographic coordinates and hotel address in Paris. | "GeoLocation": { "latitude": 48.8714, "longitude": 2.3434 }, "Image": [ {...} ], "Address": { "@type": "Address", "AddressLine": [ "30-32 BOULEVARD POISSONNI RE" ], "City": "PARIS", "Country": { "value": "FR" }, "PostalCode": "75009" }, "Telephone": [...], }, |