Search by Airport
This use case details a search request for properties within a specified radius around Charles de Gaulle airport (IATA code CDG).
Prerequisites |
Next stepsTo proceed with booking:
|
Use case v12: SearchComplete API
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" }, }, |
Use case v11: Search by Location API
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": [...], }, |