Vue-instantsearch: Is it possible to use vue-instantsearch with Algolia places?

Created on 2 Nov 2018  路  7Comments  路  Source: algolia/vue-instantsearch

Hi! Thank's for a great project! I'm just wondering if it is possible to use vue-instantsearch with Algolia places. I see there is a mention of instantsearch.js on the Algolia Places page. I can't seem to figure out how to use places if it is possible.

question

Most helpful comment

I looked at the template but it seemed oriented around instant search and I haven't tried integrating them yet, but I can certainly share how I made places work in vue. I'll just clean up the code a bit and share a sandbox.

I've seen that there are a couple of places integrations but they seem outdated(? or I just cant make them work) or in once case depends on other Vuetify components.

All 7 comments

There鈥檚 no built-in component right now, but it鈥檚 possible to write your own Vue wrapper for the library, and then use that to set Center and radius search Parameters.

Unfortunately I don鈥檛 have an example for that right now, but feel free to start it and I鈥檒l try to help you out where you鈥檙e stuck

Many thanks! I got places running in Vue, though not in Nuxt. I'll hack away a bit and get back to you.

Yes, places will need to be wrapped in a no-ssr component, since it uses window and document in the code without fallback for node

Also, it would be nice if you gave a quick demo on how you made this work (we have a template) for other people with the same questions

I looked at the template but it seemed oriented around instant search and I haven't tried integrating them yet, but I can certainly share how I made places work in vue. I'll just clean up the code a bit and share a sandbox.

I've seen that there are a couple of places integrations but they seem outdated(? or I just cant make them work) or in once case depends on other Vuetify components.

Ever make any progress on that?

Here's a integration with places in Vue:

Edit test-project

see https://github.com/algolia/places/issues/662 too.

A more advanced component could make use of connectGeoSearch here

Was this page helpful?
0 / 5 - 0 ratings

Related issues

alekcarvalho picture alekcarvalho  路  3Comments

fi0 picture fi0  路  3Comments

samouss picture samouss  路  3Comments

VinceG picture VinceG  路  6Comments

abattenburg picture abattenburg  路  4Comments