Fetching only local shops within 1 km for a user in commerce section
Nobody has claimed this yet.
- Dominant language
- JavaScript
- Stars
- 1
- Forks
- 6
- PR merge metrics
- No merged PRs in 30d
Description
Affected scope
backend
Problem statement
Currently we are fetching almost all shops for every user but we want that a user must see only local shops in their locality basically within 1km of their location .
Proposed solution
We already have user's location , we have to just get all the shops that are within 1 km from the user and show them on the page . Please note you have to do it in most optimal way .
Alternatives considered
You can comment what solution you are thinking
Impact
No response
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by locating the backend shop-fetching entry point and the user-location and shop data models. Inspect how distance filtering and indexing can be handled; done means users see only shops within 1 km while the query remains efficient.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript
- Domain
- backend
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Quiet
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100