Giter Site home page Giter Site logo

travel-cost-estimator's Introduction

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.

travel-cost-estimator's People

Contributors

ianb13 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.