Rebuild-Black-Business / RBB-Website

Website to help connect black-owned businesses with consumers and resources
https://www.rebuildblackbusiness.com/
MIT License
119 stars 72 forks source link

[Feature] Leverage the Geolocation API #284

Open magnificode opened 4 years ago

magnificode commented 4 years ago

User Story

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

Acceptance Criteria

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.

llexical commented 4 years ago

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 commented 4 years ago
if (navigator.geolocation) {
    navigator.geolocation.getCurrentPosition(function(position) {/* do something */})
}
sonAndrew commented 3 years ago

Hi, can I be assigned to this task?

magnificode commented 3 years ago

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