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.
- 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!
- Daniel Sitompul
- Maria Denna
- Gabriella Mendoza
To use this repository, you will need a valid Google Maps API key. Follow these steps to obtain your API key:
- Go to the Google Cloud Console.
- Create a new project (or select an existing one).
- Enable the "Google Maps JavaScript API" and "Google Distance Matrix API" for your project.
- Go to the "Credentials" page and create an API key.
- Replace
YOUR_API_KEY
in the code with your actual API key.
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)
Calculating the Air Taxi Route:
Sliders to adjust variables:

This is the expected final output after running this:
