Open joyce-chen opened 5 years ago
Just realized, this is a duplicate of issue #327
Coping some context from #327
Currently, our app only utilizes the location of the user when fetching nearby resources in the /:resource page. Some SW's indicated that they would like to search for resources close to their client's house. A good first step then would be to add functionality to add in specific addresses into the map on the client view (/:resource) and from there we can work further on it by adding radius filters.
Expected Behavior
There should be an input box for the user's desired starting location. The user can type in an address as their location so that the "sort by distance" feature can be more versatile.
Current Behavior
Currently, the site prompts location access. If the user allows location access, the site updates each listing with "Distance from your location:". If they do not, the "sort by distance" feature isn't useful until the user refreshes the page.
Possible Solution
The input box can be above the "Sort by" drop-down. If the user allows location access, the box can say "My location". If they don't, the box can have some placeholder text like "Add a starting location". The input box would have autocomplete address suggestions based on what the user is typing.
Context
It would be useful for people who aren't currently at the location that they want the closest listing to, or for someone to add a location after dismissing the location access prompt without having to refresh the page.