@@ -109,7 +109,7 @@ amadeus.client.post('/v1/shopping/flight-offers/pricing', JSON.stringify({ data
109109
110110## Promises
111111
112- Every API call returns a ` Promise ` that either resolves or rejects.
112+ Every API call returns a ` Promise ` that either resolves or rejects.
113113
114114Every resolved API call returns a ` Response ` object containing a ` body ` attribute with the raw response. If the API call contained a JSON response, it will parse the JSON into the ` result ` attribute. If this data contains a ` data ` key, that will be made available in ` data ` attribute.
115115
@@ -185,10 +185,10 @@ amadeus.shopping.flightDates.get({
185185
186186// Flight Offers Search
187187amadeus .shopping .flightOffersSearch .get ({
188- originLocationCode: ' SYD' ,
189- destinationLocationCode: ' BKK' ,
190- departureDate: ' 2020-08-01' ,
191- adults: ' 2'
188+ originLocationCode: ' SYD' ,
189+ destinationLocationCode: ' BKK' ,
190+ departureDate: ' 2020-08-01' ,
191+ adults: ' 2'
192192})
193193
194194// Flight Choice Prediction
@@ -255,10 +255,10 @@ amadeus.shopping.flightOffersSearch.get({
255255// To retrieve the seat map of each flight included
256256// in flight offers for MAD-NYC flight on 2020-08-01
257257amadeus .shopping .flightOffersSearch .get ({
258- originLocationCode: ' SYD' ,
259- destinationLocationCode: ' BKK' ,
260- departureDate: ' 2020-08-01' ,
261- adults: ' 1'
258+ originLocationCode: ' SYD' ,
259+ destinationLocationCode: ' BKK' ,
260+ departureDate: ' 2020-08-01' ,
261+ adults: ' 1'
262262}).then (function (response ){
263263 return amadeus .shopping .seatmaps .post (
264264 JSON .stringify ({
@@ -303,21 +303,21 @@ amadeus.referenceData.locations.airports.get({
303303
304304// Flight Most Booked Destinations
305305amadeus .travel .analytics .airTraffic .booked .get ({
306- originCityCode : ' MAD' ,
307- period : ' 2017-08'
308- })
306+ originCityCode : ' MAD' ,
307+ period : ' 2017-08'
308+ }
309309
310310// Flight Most Traveled Destinations
311311amadeus .travel .analytics .airTraffic .traveled .get ({
312- originCityCode : ' MAD' ,
313- period : ' 2017-01'
312+ originCityCode : ' MAD' ,
313+ period : ' 2017-01'
314314})
315315
316316// Flight Busiest Traveling Period
317317amadeus .travel .analytics .airTraffic .busiestPeriod .get ({
318- cityCode: ' MAD' ,
319- period: ' 2017' ,
320- direction: Amadeus .direction .arriving
318+ cityCode: ' MAD' ,
319+ period: ' 2017' ,
320+ direction: Amadeus .direction .arriving
321321})
322322
323323// Trip Parser API
@@ -366,16 +366,16 @@ amadeus.booking.hotelBookings.post(
366366// Points of Interest
367367// What are the popular places in Barcelona (based a geo location and a radius)
368368amadeus .referenceData .locations .pointsOfInterest .get ({
369- latitude : 41.397158 ,
370- longitude : 2.160873
369+ latitude : 41.397158 ,
370+ longitude : 2.160873
371371})
372372
373373// What are the popular places in Barcelona? (based on a square)
374374amadeus .referenceData .locations .pointsOfInterest .bySquare .get ({
375- north: 41.397158 ,
376- west: 2.160873 ,
377- south: 41.394582 ,
378- east: 2.177181
375+ north: 41.397158 ,
376+ west: 2.160873 ,
377+ south: 41.394582 ,
378+ east: 2.177181
379379})
380380
381381// Points of Interest
@@ -385,16 +385,16 @@ amadeus.referenceData.locations.pointOfInterest('9CB40CB5D0').get()
385385// Hotel Ratings
386386// Get Sentiment Analysis of reviews about Holiday Inn Paris Notre Dame.
387387amadeus .eReputation .hotelSentiments .get ({
388- hotelIds: ' XKPARC12'
388+ hotelIds: ' XKPARC12'
389389})
390390
391391// Trip Purpose Prediction
392392// Forecast traveler purpose, Business or Leisure, together with the probability in the context of search & shopping.
393393amadeus .travel .predictions .tripPurpose .get ({
394- originLocationCode: ' NYC' ,
395- destinationLocationCode: ' MAD' ,
396- departureDate: ' 2020-08-01' ,
397- returnDate: ' 2020-08-12'
394+ originLocationCode: ' NYC' ,
395+ destinationLocationCode: ' MAD' ,
396+ departureDate: ' 2020-08-01' ,
397+ returnDate: ' 2020-08-12'
398398})
399399
400400// AI-Generated Photos
@@ -407,25 +407,32 @@ amadeus.media.files.generatedPhotos.get({
407407// This machine learning API is based on a prediction model that takes the input of the user - time, carrier, airport and aircraft information;
408408// and predict the segment where the flight is likely to lay.
409409amadeus .travel .predictions .flightDelay .get ({
410- originLocationCode: ' BRU' ,
411- destinationLocationCode: ' FRA' ,
412- departureDate: ' 2020-01-14' ,
413- departureTime: ' 11:05:00' ,
414- arrivalDate: ' 2020-01-14' ,
415- arrivalTime: ' 12:10:00' ,
416- aircraftCode: ' 32A' ,
417- carrierCode: ' LH' ,
418- flightNumber: ' 1009' ,
419- duration: ' PT1H05M'
410+ originLocationCode: ' BRU' ,
411+ destinationLocationCode: ' FRA' ,
412+ departureDate: ' 2020-01-14' ,
413+ departureTime: ' 11:05:00' ,
414+ arrivalDate: ' 2020-01-14' ,
415+ arrivalTime: ' 12:10:00' ,
416+ aircraftCode: ' 32A' ,
417+ carrierCode: ' LH' ,
418+ flightNumber: ' 1009' ,
419+ duration: ' PT1H05M'
420420})
421421
422422// Airport On-time Performance
423423// Get the percentage of on-time flight departures from JFK
424424amadeus .airport .predictions .onTime .get ({
425- airportCode: ' JFK' ,
426- date: ' 2020-08-01'
425+ airportCode: ' JFK' ,
426+ date: ' 2020-08-01'
427+ })
428+
429+ // Travel Recommendations
430+ amadeus .referenceData .recommendedLocations .get ({
431+ cityCodes: ' PAR' ,
432+ travelerCountryCode: ' FR'
427433})
428434
435+ // Safe Place
429436// How safe is Barcelona? (based a geo location and a radius)
430437amadeus .safety .safetyRatedLocations .get ({
431438 latitude: 41.397158 ,
0 commit comments