instantsearch icon indicating copy to clipboard operation
instantsearch copied to clipboard

Marker clustering for geosearch

Open allyraza opened this issue 5 years ago • 4 comments

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:

  1. Go to '...'
  2. Click on '....'
  3. Scroll down to '....'
  4. 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.

allyraza avatar Mar 08 '20 11:03 allyraza

InstantSearch's geo search implementation only loads the results within the provided bounds.

Here are more resources:

francoischalifour avatar Mar 09 '20 08:03 francoischalifour

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.

spindriftwebs avatar Mar 30 '20 09:03 spindriftwebs

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

dharitmn avatar May 26 '21 06:05 dharitmn

@spindriftwebs I am also curious as to how you have solved this codewise

chazzaoui avatar Dec 03 '21 21:12 chazzaoui

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.

dhayab avatar Dec 19 '22 14:12 dhayab