- HTML 5
- CSS 3
- Google Maps Geocoding API
- The Hiking Project API
- Open Weather Map API
After reviewing the requirements of our projects and coming up with an idea, our next steps were to come up with a plan. We spent our first day laying out our ideas across a whiteboard. We sketched out wireframes and discussed the problems we were looking to solve. Some of these included getting input( a location) from the user, talking to 2 API’s to get data and presenting the user with hiking trail options nearby. We decided to limit these trail options to include a trail name, a location, a length, a difficulty rating, and an overall rating represented by stars. We also wanted this app to be web responsive, so we styled based on the ‘mobile first’ design.
Once we got the basic layout and functionality down, we decided to add a few more features. We included an image carousel on the “About” page, as well as some design features that linked up our Github and LinkedIn profiles. We also included a trail map widget for each trail, which would load if a trail name was clicked on. We were able to add an additional API that returned information about weather conditions, as well as sunrise and sunset times for users.
We worked together diligently, asking each other questions, collaborating on ideas and constantly teaching each other new techniques we had implemented. We helped each other navigate Git and merge files on Github.
Once we had merged and solved any conflicts in our code, we had just about run out of time to add any new features. We discussed what we would like to add in the future, some of the lessons we had learned from our first group project, and put together a powerpoint presentation.
Trail Offers List
The challenge with the dynamic creation of the rating occurred when the rendering of the decimal part wasn't filling the inside of the star properly because the image from Font Awesome was an SVG icon. In order to remedy this shortcoming, but still display the correct value, we decided to use the transform property. This resulted in the fifth star image to be depicted smaller than the other stars as its size was affected proportionally by the decimal value transformed into a percentage.
Another challenge was the rendering of the map so it displays the trail being selected. Our initial plan was to create the map using the Google Maps API, and drop a pin to the start point and further build the trail using polylines. But, as a limitation of the hiking API, we weren't able both to retrieve information about the longitude and latitude of the end point of the trail and any intermediary coordinates in order to create a trail. We settled on using a widget and customize the URL for each trail. The dynamic custom URL takes the trail id, and when the link with the name of the chosen trail is clicked, it will redirect the user to the corresponding map of the trail.
Phase 2 Features
Phase 2 feature:
- Users could filter by feature(length, difficulty, etc.)
- Provide more than 10 trail options
- Add features like “good-for-families”, “pet-friendly”, “good for bird-watching”.
- Display a map that shows where all the trailheads listed are located in the area
- Users could save their favorite trails