Skip to content
This repository has been archived by the owner on Feb 28, 2022. It is now read-only.

An address input box for your location #400

Open
joyce-chen opened this issue Sep 11, 2019 · 2 comments
Open

An address input box for your location #400

joyce-chen opened this issue Sep 11, 2019 · 2 comments
Assignees

Comments

@joyce-chen
Copy link

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.

@acharliekelly
Copy link
Collaborator

Just realized, this is a duplicate of issue #327

@galiat
Copy link
Collaborator

galiat commented Oct 15, 2019

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.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants