Skip to content

Graph based map to find all possible flight routes between 2 airports

Notifications You must be signed in to change notification settings

nipatiitti/globe-graph

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Globe Graph

This project scrapes flight route data from FlightsFrom.com and displays as a graph using sigma.js.

Backend

The backend has 2 commands:

  • yarn scrape - Scrapes the data from FlightsFrom.com and saves it to a redis database.
  • yarn graph - Converts the data in the redis database to a Graphology graph and saves it to a graph.json file.

You can the the airport from which the scraper starts by changing the line 76 in src/scraper.js:

scrape("ARN");

Frontend

The frontend is a simple vite.js based Vanilla JS app that uses Deck.gl to display the graph.

Simply copy the graph.json file from the backend to the src folder, rename it to data.json and run yarn dev to start the dev server.

Requisites

  • Docker Compose To run the redis database from the docker-compose.yml file.
  • Node.js To run the backend and frontend.
  • Yarn To install the dependencies and run the commands.

About

Graph based map to find all possible flight routes between 2 airports

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published