Skip to content

Danielstevends/AirTransport

Repository files navigation

AirTransport Comparison Calculator

This repository calculates operational variables, comparing air taxi vehicles and ground transportation. It features sliders to customize variables such as fuel consumption, emissions, and more. As input, the application uses the Google Maps API to determine distances and travel times.

Feel free to use this repository and credit my name if you find it helpful for your project.


Features

  • Customizable Sliders: Adjust variables such as fuel consumption and emissions.
  • Google Maps Integration: Automatically calculates distances and travel times using the Google Maps API.
  • Final Output Visualization: Comparison of Land Transportation vs Airtaxi in terms of: Total Distance, Travel Time, Price per Person, Battery Used, Fuel Used, Total Emission, and Emission per Person. See Further example Results Bellow!

Team Members

  • Daniel Sitompul
  • Maria Denna
  • Gabriella Mendoza

Prerequisites

Google Maps API Key

To use this repository, you will need a valid Google Maps API key. Follow these steps to obtain your API key:

  1. Go to the Google Cloud Console.
  2. Create a new project (or select an existing one).
  3. Enable the "Google Maps JavaScript API" and "Google Distance Matrix API" for your project.
  4. Go to the "Credentials" page and create an API key.
  5. Replace YOUR_API_KEY in the code with your actual API key.

Code Snippet for Google Maps API Integration

API_KEY = 'YOUR_API_KEY'  # Replace 'YOUR_API_KEY' with your actual Google Maps API key
import googlemaps

# Initialize the Google Maps client
gmaps = googlemaps.Client(key=API_KEY)

Final Results:

Choosing Waypoints: image

Calculating the Air Taxi Route: image

Sliders to adjust variables:

image

This is the expected final output after running this:

image

About

This repository will calculate operational variables with widgets to change independent variables.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published