In the overall city score route handler, call helper functions to generate the scores for each of a given city's livability dimensions: crime, air, walk,rent
Accept the user's importance (rating of 1 to 10) of each of those dimensions
Calculate a weighted average of the city score against the user's importance ratings
Return the weighted average as that user's overall city score
Files Modified:
Details: