Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

servlet: Amadeus flight api #27

Merged
merged 5 commits into from
Dec 23, 2024
Merged

servlet: Amadeus flight api #27

merged 5 commits into from
Dec 23, 2024

Conversation

evacchi
Copy link
Contributor

@evacchi evacchi commented Dec 18, 2024

Amadeus is a multinational tech company that provides software for the global travel and tourism industry.

This servlet makes available the Flight Offer Search endpoint as a tool.

NOTE: Depending on the credentials and host you will use, you might get real-time or simulated data.

You can get free development access to the test endpoints by creating an account at https://developers.amadeus.com/register

Config

  • base-url: the base URL of the API. For the test system use https://test.api.amadeus.com
  • api-key: your self-service or production API key
  • api-secret: your self-service or production API Secret

Hosts

  • You should allow access to *.amadeus.com or at least test.api.amadeus.com

Example:

— hi Claude I'd like to spend my holidays in Paris, can you find me a flight from Milan Malpensa on Xmas eve, and return on January new year's day?

I'll help you search for flights from Milan Malpensa (MXP) to Paris for the holiday season.

I've found several flight options for your Christmas holiday trip to Paris. All flights are operated by Lufthansa and include a stopover in Munich. Here are the best options:

  1. Afternoon Departure (13:15)

    • Outbound: Dec 24, MXP 13:15 → CDG 17:25 (4h 10m total)
    • Return: Jan 1, CDG 09:25 → MXP 12:35 (3h 10m total)
    • Price: €241.32
  2. Early Morning Departure (06:00)

    • Outbound: Dec 24, MXP 06:00 → CDG 11:30 (5h 30m total)
    • Return: Jan 1, CDG 09:25 → MXP 12:35 (3h 10m total)
    • Price: €241.32

All flights include:

  • 1 checked bag
  • Standard seat reservation
  • Option to purchase meals
  • Possibility to change flights (with fee)

Would you like to know more details about any of these options or would you like me to search for different times?

— is there any non-stop option?

Let me search for direct flights between Milan Malpensa and Paris.

Yes, I found several direct flight options! You have choices between Air France (flying to Charles de Gaulle - CDG) and Vueling (flying to Orly - ORY). Here are the best options:

  1. Air France to CDG

    • Outbound: Dec 24, MXP 18:40 → CDG 20:15 (1h 35m)
    • Return: Jan 1, CDG 09:05 → MXP 10:35 (1h 30m)
    • Price: €247.16
    • Includes: 1 checked bag, snack, beverage, and standard seat selection
  2. Vueling to ORY

    • Outbound: Dec 24, MXP 20:45 → ORY 22:15 (1h 30m)
    • Return: Jan 1, ORY 06:40 → MXP 08:10 (1h 30m)
    • Price: €250.62
    • Includes: 25kg checked baggage allowance

These direct flights are only slightly more expensive than the connecting flights (around €5-10 more) but save you 2-4 hours of travel time each way. Would you like me to provide more details about any of these options?

Note that the Air France flight arrives at Charles de Gaulle (CDG), which is connected to central Paris by RER B train, while the Vueling flight uses Orly (ORY), which is typically closer to southern Paris and connected by the Orlyval shuttle to RER B.

Signed-off-by: Edoardo Vacchi <[email protected]>
Signed-off-by: Edoardo Vacchi <[email protected]>
Signed-off-by: Edoardo Vacchi <[email protected]>
@evacchi evacchi merged commit b36be58 into main Dec 23, 2024
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant