Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Feature] Leverage the Geolocation API #284

Open
6 tasks
magnificode opened this issue Jun 26, 2020 · 4 comments
Open
6 tasks

[Feature] Leverage the Geolocation API #284

magnificode opened this issue Jun 26, 2020 · 4 comments
Assignees
Labels
enhancement New feature or request hacktober hacktoberfest Good for Hacktoberfest

Comments

@magnificode
Copy link
Member

magnificode commented Jun 26, 2020

User Story

As a user
I want to allow RBB to use my IP location
So I can view businesses near me

Acceptance Criteria

  • Add a geolocation icon to any "zipcode" input field, this will act as the trigger for the following items
  • Leverage the Geolocation API in order to prompt user allowing RBB to get their location
  • Use geolocation data to set the default search results based on that data
  • There is a button near the filters that will trigger the Geolocation API functionality asking for user location.
  • There is a tooltip that appears when hovering the button, which explains why we are getting your location
  • Results that are shown are accurate based on the user's location

Describe the solution you'd like

We need to add a button within the filters that will trigger the Geolocation API to get the users location, and update the search results based on that location.

We will need to be sure that the Geolocation data that is passed to the API is a latitude and longitude.

@magnificode magnificode added enhancement New feature or request question Further information is requested on hold draft labels Jun 26, 2020
@magnificode magnificode added this to the V1 Business Architecture milestone Jun 26, 2020
@magnificode magnificode added assets needed when there are files of other necessary things needed to perform the ticket and removed on hold draft labels Jun 27, 2020
@llexical
Copy link
Contributor

Looking good to me, I don't think I have much more to add. Just needs designs and I recon this can get started asap :)

@elchris
Copy link

elchris commented Jul 3, 2020

if (navigator.geolocation) {
    navigator.geolocation.getCurrentPosition(function(position) {/* do something */})
}

@magnificode magnificode added hacktober hacktoberfest Good for Hacktoberfest and removed assets needed when there are files of other necessary things needed to perform the ticket blocked question Further information is requested labels Sep 29, 2020
@sonAndrew
Copy link

Hi, can I be assigned to this task?

@magnificode
Copy link
Member Author

@sonAndrew - apologies for the delay! Thanks for picking this up!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request hacktober hacktoberfest Good for Hacktoberfest
Projects
None yet
Development

No branches or pull requests

7 participants