Skip to content

Commit f4ff98a

Browse files
authored
Merge pull request #137 from amadeus4dev/fix-typo-airport-and-city
typos fixed and update examples.js
2 parents 83f050c + b515390 commit f4ff98a

File tree

3 files changed

+14
-10
lines changed

3 files changed

+14
-10
lines changed

README.md

Lines changed: 12 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -183,19 +183,23 @@ amadeus.shopping.flightDates.get({
183183
destination : 'MUC'
184184
})
185185

186-
// Flight Offers Search
186+
// Flight Offers Search GET
187187
amadeus.shopping.flightOffersSearch.get({
188188
originLocationCode: 'SYD',
189189
destinationLocationCode: 'BKK',
190-
departureDate: '2021-08-01',
190+
departureDate: '2022-11-01',
191191
adults: '2'
192192
})
193193

194+
// Flight Offers Search POST
195+
A full example can be found at https://github.com/amadeus4dev/amadeus-code-examples
196+
amadeus.shopping.flightOffersSearch.post(body)
197+
194198
// Flight Offers Price
195199
amadeus.shopping.flightOffersSearch.get({
196200
originLocationCode: 'SYD',
197201
destinationLocationCode: 'BKK',
198-
departureDate: '2021-08-01',
202+
departureDate: '2022-11-01',
199203
adults: '1'
200204
}).then(function(response){
201205
return amadeus.shopping.flightOffers.pricing.post(
@@ -238,7 +242,7 @@ amadeus.booking.flightOrder('XXX').delete()
238242
amadeus.shopping.flightOffersSearch.get({
239243
originLocationCode: 'SYD',
240244
destinationLocationCode: 'BKK',
241-
departureDate: '2021-08-01',
245+
departureDate: '2022-11-01',
242246
adults: '1'
243247
}).then(function(response){
244248
return amadeus.shopping.seatmaps.post(
@@ -266,7 +270,7 @@ amadeus.shopping.flightOffers.upselling.post(body);
266270
amadeus.shopping.flightOffersSearch.get({
267271
originLocationCode: 'SYD',
268272
destinationLocationCode: 'BKK',
269-
departureDate: '2021-04-01',
273+
departureDate: '2022-11-01',
270274
adults: '2'
271275
}).then(function(response){
272276
return amadeus.shopping.flightOffers.prediction.post(
@@ -462,7 +466,7 @@ amadeus.travel.predictions.flightDelay.get({
462466
// Get the percentage of on-time flight departures from JFK
463467
amadeus.airport.predictions.onTime.get({
464468
airportCode: 'JFK',
465-
date: '2021-08-01'
469+
date: '2022-18-01'
466470
})
467471

468472
// Travel Recommendations
@@ -471,11 +475,11 @@ amadeus.referenceData.recommendedLocations.get({
471475
travelerCountryCode: 'FR'
472476
})
473477

474-
// Price Flight Analysis
478+
// Flight Price Analysis
475479
amadeus.analytics.itineraryPriceMetrics.get({
476480
originIataCode: 'MAD',
477481
destinationIataCode: 'CDG',
478-
departureDate: '2021-03-13',
482+
departureDate: '2022-03-13',
479483
})
480484

481485
```

src/amadeus/namespaces/reference_data/locations.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ class Locations {
3535
* Find any location starting with 'lon'
3636
*
3737
* ```js
38-
* amadeus.referenceData.location.get({
38+
* amadeus.referenceData.locations.get({
3939
* keyword: 'lon',
4040
* subType: Amadeus.location.any
4141
* });

src/amadeus/namespaces/reference_data/locations/airports.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ class Airports {
2929
* Find the nearest airport to the 49.0000,2.55 lat/long
3030
*
3131
* ```js
32-
* amadeus.referenceData.urls.locations.airports.get({
32+
* amadeus.referenceData.locations.airports.get({
3333
* longitude: 49.0000,
3434
* latitude: 2.55
3535
* });

0 commit comments

Comments
 (0)