instantsearch
instantsearch copied to clipboard
Marker clustering for geosearch
Describe the bug 🐛
We are currently using algolia for search feature in our product, we are currently in process of adding map search to our product, we have lot of documents would like to make use of marker clustering, but it seems inefficient as it would require us to query algolia for all the documents to render the markers with counts would like to know if it is possible to do with algolia without quering all the documents.
To Reproduce 🔍 Steps to reproduce the behavior:
- Go to '...'
- Click on '....'
- Scroll down to '....'
- See error
A live example helps a lot! We have a simple online template for you to use for your explanations:
https://codesandbox.io/s/github/algolia/create-instantsearch-app/tree/templates/instantsearch.js
Expected behavior 💭 A clear and concise description of what you expected to happen.
Screenshots 🖥 If applicable, add screenshots to help explain your problem.
Environment:
- OS: [e.g. iOS / windows / mac / android]
- Browser [e.g. chrome, safari]
- Version [e.g. 22]
Additional context Add any other context about the problem here.
InstantSearch's geo search implementation only loads the results within the provided bounds.
Here are more resources:
Hi,
We've implemented something similar here: https://www.secondhandboards.com/used-surfboards
It uses marker clustering, updates search based on refinements and uses Mapbox instead of Google maps.
Hi,
We've implemented something similar here: https://www.secondhandboards.com/used-surfboards
It uses marker clustering, updates search based on refinements and uses Mapbox instead of Google maps.
Can you provide me github code link
@spindriftwebs I am also curious as to how you have solved this codewise
Closing this issue. As mentioned, results are queried from within the provided bounds, which should prioritize retrieving documents to be used in a chosen marker clustering implementation.