Skip to content

IanB13/travel-cost-estimator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

53 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Travel Cost Estimator

This web app dynamically estimates travel costs based on user inputs and displays the cost and route on a map.

This project is deployed at https://travel-cost-estimator.herokuapp.com/

Overview

The start point is placed in central London and the destinations are randomly placed throughout the greater London area.The locations could be generated from API data with very few changes.

The user can select one of three travel estimate types:

   Trip Distance: Uses Google direction API data to find the travel distance. It is the distance a vehicle would typically take using the best route.

   Trip Time: Uses Google direction API data to find the travel time.It is the time a vehicle would typically take using the best route.

   Crow Flies Distance: Uses the Haversine formula to find the straight line distance.

Then the user can select an estimate type:

   Flat Rate: Flat amount of money per unit of distance or time

   Variable Rate: Fixed amount of money for first unit of distance or time then flat rate thereafter

The app then calculates the estimates for all the routes and can generate a path when the destination is clicked.

The app was built using create react app.

It uses react and redux and the Google maps and directions APIs.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published