Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/mohamad-jamal-j/fast-flight

Application of Dijkstra's algorithm to find the shortest path between countries (distance-wise).
https://github.com/mohamad-jamal-j/fast-flight

dijkstra-algorithm gluonhq java javafx openstreetmap

Last synced: about 1 month ago
JSON representation

Application of Dijkstra's algorithm to find the shortest path between countries (distance-wise).

Awesome Lists containing this project

README

        

# Fast Flight (Java Application)
Welcome to Fast Flight! This Java application uses Dijkstra's algorithm to find and demonstrate the shortest path between countries on an interactive map using JavaFX and Gluon Maps.

Built on the Gluon starter template, this application uses OpenStreetMap tiles in JavaFX. You can find it here: [Gluon Starter](https://start.gluon.io).

### Run the project on JVM/HotSpot:

- `mvn gluonfx:run`
- or manually from Maven >> Plugins >> gluonfx:run

## Key Features for Users
- Finds and displays the shortest path between selected countries.
- Enhances user experience with smooth animation and simple abstract UI.
- Displays shortest path information: Distance and the path taken between the selected countries.
- Displays a map containing the entire flight path from source to destination countries.

## For Developers

- **Dijkstra's Algorithm**:
- Efficiently calculates the shortest path in a weighted graph.
- Visualization of the algorithm's output step-by-step on the map.

- **JavaFX and Gluon Maps Integration**:
- Uses JavaFX for the user interface and interactive elements.

### Basic Requirements

A list of the basic requirements can be found online in the [Gluon documentation](https://docs.gluonhq.com/#_requirements).

### Selected features

This is a list of all the features that were selected when creating the sample:

### JavaFX 21 Modules

- javafx-base
- javafx-graphics
- javafx-controls

### Gluon Features

- Maps: cross-device map interfacing

## App Screenshots
### App Main Interface



![main.png](https://github.com/Mohamad-Jamal-J/Fast-Flight/blob/master/fast-flight/src/main/resources/main.png)

---
### Displaying Shortest Path Details



![details.png](https://github.com/Mohamad-Jamal-J/Fast-Flight/blob/master/fast-flight/src/main/resources/details.png)
---
### Displaying the Path on Map



![map.png](https://github.com/Mohamad-Jamal-J/Fast-Flight/blob/master/fast-flight/src/main/resources/map.png)
---

## Short Demo
[Watch App Demo](https://drive.google.com/file/d/1Bg0sKfuE2SakBALPK9kYe7LuN59HbyFi/view?usp=sharing)