communityconnect icon indicating copy to clipboard operation
communityconnect copied to clipboard

An address input box for your location

Open joyce-chen opened this issue 7 years ago • 2 comments

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.

joyce-chen avatar Sep 11 '19 02:09 joyce-chen

Just realized, this is a duplicate of issue #327

acharliekelly avatar Sep 11 '19 03:09 acharliekelly

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.

galiat avatar Oct 15 '19 23:10 galiat