React and Google MapsCollaborative
PU Nav
Campus navigation and directions
A campus navigation application that routes a visitor between points using the Google Maps Directions service, with Firestore holding application data.
- Ownership
- Collaborative
- Attribution
- Four person college project. I designed the overall architecture and worked on both front end and back end.
- Status
- College project. The repository has no deployment configuration and requires a Google Maps API key to run.
01From the repository
What the published source shows
Read directly from the public source rather than from the project name or the résumé.
Navigation features
- Origin and destination entry with a directions request and rendered route.
- Distance and duration read from the first leg of the returned route and shown to the user.
- Travel mode handling with bicycling as the initial mode, plus a bicycling layer on the map.
- Map click capture that opens an info window and lets the clicked point be assigned as origin or destination.
- Current location support using the browser geolocation API, with reverse geocoding to turn coordinates into a readable place name.
Application structure
- Create React App project with a menu component and a map component written as a React class component.
- Firebase initialised in a dedicated module with Firestore exported for application use.
- Tailwind CSS configured alongside component level CSS for the map interface.
02Demonstrates
What this project is evidence of
- Third party mapping and directions integration
- State handling for an interactive map interface
- Cloud datastore setup
- Architecture design within a small team
Stack
- React 18
- Create React App
- @react-google-maps/api
- Google Maps Directions
- Firebase Firestore
- Tailwind CSS 3
Notes
- Not run here: needs a Google Maps API key and a Firebase project.
- Front end only: no backend API is wired in.
Attribution: Four person college project. I designed the overall architecture and worked on both front end and back end.