googleinterns / trace

5 stars 2 forks source link

(Stretch) Use Distance Matrix API to route to trip #52

Open kcirerick opened 3 years ago

kcirerick commented 3 years ago

Perhaps we can allow a user to map directly the location they deem safest after reading the reviews?

kcirerick commented 3 years ago

Traveling salesman Min Span Tree DFS

kcirerick commented 3 years ago

"The Distance Matrix API is a service that provides travel distance and time for a matrix of origins and destinations, based on the recommended route between start and end points." We can use this matrix to include a feature that lets us sort by either distance or time away from a given location. Then, once a user clicks on a search result and scrolls through the reviews, I think it'd be nifty to include a button with a navigation icon that allows users to map to that particular location.

kcirerick commented 3 years ago

Perhaps we can even count the number of users who "navigate" to a location from the reviews page and use this to boost a locations reviews even if that user doesn't write a review, since this implicitly indicates the user found it safe enough to consider navigating there.

ccjeane commented 3 years ago

Let's make a button sending them to Google Maps (and specifically to that location)