• I am trying to achieve a search based on geolocation. When user has activated geolocation but made search for another location I want to give him the ability to search again using his location. Does the plugin expose any JS API for the ajax request? If not do you have to suggest any solution for this?

    Thanks!

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Tijmen Smit

    (@tijmensmit)

    The only way to do this is by creating a custom template, and in the search bar then add a custom button that triggers the search function again.

    Set the ‘wpsl-icon-direction‘ class on the button, and it should trigger a new geolocation request.

    Thread Starter VSotiris

    (@vsotiris)

    Thanks for your reply. I created a similar solution. In any case consider to expose a JS API, I think would be helpful for custom solutions.

    mentrik

    (@mentrik)

    @vsotiris
    Hello,
    i would also be interested in that. did you manage to do it?
    thank you in advance.

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Search with geolocation’ is closed to new replies.