Eco Pathfinder is a SPA that envisions a new way of accessing multi-modal travel information to embed the consideration of our carbon footprint into our everyday commute. Eco Pathfinder encourages a “slower” mode of travel by providing users with four travel methods to their destination alongside its CO2 emission. Implicitly promoting carpooling over personal automobiles for long-distance travel and the use of scooter/bicycle over automobile for local journeys. LIVE DEMO HERE
▪ Utilized React,Redux,and CSS to compose an interface that illustrates various modes of transit and their impact on the environment, allowing users to make environmentally conscious transportation choices.
▪ Leveraged the GoogleMapsAPI to quickly implement rich features like allowing users to easily search for addresses via autocomplete, calculate the distance and time between two points across various modes of transportation, and visualize their route on an interactive map without reinventing the wheel.
▪ Designed a formula utilizing data from the U.S Department of Transportation inconjunction withdata from the Google Maps API to calculate total emissions based on the mode of transit and distance.
- Clone the repository
$ git clone https://[email protected]:shdzhng/eco-pathfinder.git
- Install the node package
$ npm install
- If you wish to use your own Google Maps API key you can do so at .env.local in the root folder. Ensure that your credential have the following APIs enabled: Directions API, Geocoding API, Maps Javascript API, Places API
REACT_APP_GOOGLE_MAPS_API_KEY = ["YOUR_API_KEY"]
- Run npm start
$ npm start
Emissions calculation logic informed by data released by the U.S. Department of Transportation.