This is a simple React application to calculate the fuel costs between two locations based on the average of three things:
See a example here: Fuel Costs at Netlify
- Kms from one place to another
- The average of fuel price
- The average of vehicule fuel consumption
Create a .env
file in the root of the application and put the REACT_APP_URL variable with this:
https://maps.googleapis.com/maps/api/js?key=YOUR_KEY&libraries=geometry,drawing,places
Update YOUR_KEY for you Api key in Google Maps
yarn start