SmokeTM
2 weeks ago
128
5
Laravel

Algolia create a distance filter

Posted 2 weeks ago by SmokeTM

I am using Algolia Instantsearch with vue components, everything works perfectly right now except distance filtering. What I want to do is create a distance filter based on user ip. I created the geoloc object for every record. Now I got stuck because there is no vue widget for distance filtering. What I want the user to be able to do is search in a specified radius. The user should be able to select the radius in a drop down menu. For example 10km / 25km and 50km. What I found was a slider component

https://gist.github.com/BenSampo/ec7cd51591deefddf08313eac693e5bb

does not really work for me. I dont get for what the

":class="bem()"

stands for. Maybe someone made something like this already and could help me.

best

Please sign in or create an account to participate in this conversation.