cristighr1995 / Holiholic

A trip planner and travel guide application which offers activity suggestions and personalized day plans based on user’s preferences and profile.
Apache License 2.0
2 stars 0 forks source link

[HH-24][PLANNER] Stats about the possible itineraries #34

Closed cristighr1995 closed 5 years ago

cristighr1995 commented 5 years ago

When returning the possible itineraries to user, the response should also contain information like:

  1. Total distance
  2. Total time spent
  3. Average rating
  4. Number of visited places

Also in this PR I refactored the code to be reusable and named better the variables.

I observed that for the last place in the itinerary the distance and the duration to next place (which is none in most cases, but not when we need to return to where we parked the car) were wrong set so I fixed this bug!

cristighr1995 commented 5 years ago

Related issue: https://github.com/cristighr1995/Holiholic/issues/24