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

(w/ 188) Backend: Create function that identifies the 3 nearest facilities to a user #202

Open
neozhixuan opened this issue Oct 16, 2023 · 0 comments

Comments

@neozhixuan
Copy link
Collaborator

neozhixuan commented Oct 16, 2023

Context
In the map filter, we will need to filter the list of facilities for the 3 facilities nearest to the user.
image
For the 3 elements identified, #197 will be implementing a different coloured icon for them.
image

Task

  • We have an existing hook function to calculate and gather the recycling facilities that will be displayed on the map as a JS Object.
  • Return the 3 nearest facilities in that JS Object, as a new function, or through some form of identification (implementation is up to you)

Figma Link
https://www.figma.com/file/kN115h4H1jk797qa3x08Et/RGW-Design_Master-Design-File?type=design&node-id=5391-12952&mode=design&t=vXOg3r6tAVeVLX07-0

Acceptance Criteria
npm run build works

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: On hold/Cancelled
Development

No branches or pull requests

1 participant