Skip to content

SkyNav AI is a smart flight tracker that analyzes routes, layovers, and airlines to optimize multi-destination travel based on user preferences.

Notifications You must be signed in to change notification settings

AbdulRaafaay/SkyNav-AI

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

2 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

✈️ SkyNav: Flight Routing System (CLI Version)

SkyNav is a C++ console-based flight navigation system that helps users find flight routes between cities. It provides multiple search modes, including:

  • βœ… All possible paths between two cities
  • πŸš€ Shortest route by total travel time
  • πŸ’Έ Cheapest route by ticket cost
  • 🎯 Filtered routes based on:
    • Airline
    • Date
    • Transit city

πŸ“‚ Project Structure

  • main.cpp β€” Core application logic (graph structure, file reading, route search)
  • Flights.txt β€” Contains all flight details (origin, destination, time, price, airline)
  • HotelCharges_perday.txt β€” Contains hotel rent per city

βš™οΈ Features

  1. Find all possible routes between any two cities.
  2. Find the shortest route based on total flying time (via Dijkstra’s algorithm).
  3. Find the cheapest route based on ticket cost (via Dijkstra’s algorithm).
  4. Filter routes by:
    • Specific airline
    • Specific date
    • Required transit city

πŸ“₯ How to Run

πŸ›  Requirements

  • C++ compiler (e.g., MSVC, g++, clang++)
  • Console / Terminal

πŸ’» Compile and Run (g++ example)

g++ main.cpp -o skynav
./skynav

Or on Windows with MSVC:

cl main.cpp
main.exe

πŸ“„ Input Format

Flights.txt

Origin Destination TravelDate FlyingTime LandingTime TicketPrice Airline

Example:

Karachi Lahore 01/01/2025 09:00 10:45 150 AirBlue

HotelCharges_perday.txt

CityName HotelRent

Example:

Karachi 5000
Lahore 4000

πŸ“Œ Usage

The application presents a simple CLI menu:

1. CHECK ALL PATHS
2. SHORTEST ROUTE FINDER
3. CHEAPEST ROUTE FINDER
4. PREFERRED TRAVELS (DATES, AIRLINES, TRANSIT CITY)

Follow the prompts to input your origin, destination, and any additional preferences.

🧠 Algorithms Used

  • Graph (Adjacency List) β€” To store cities and flights
  • DFS β€” For exploring all paths
  • Dijkstra’s Algorithm β€” For shortest/cheapest path
  • Custom Stack and MinHeap β€” For efficient traversal

πŸ“¬ Feedback

Feel free to suggest improvements or request additional features (e.g., layover time, GUI)!

About

SkyNav AI is a smart flight tracker that analyzes routes, layovers, and airlines to optimize multi-destination travel based on user preferences.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages