Skip to content

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

@neozhixuan

Description

@neozhixuan

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    Status

    On hold/Cancelled

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions