• Resolved Yohai

    (@yohio)


    Hello,

    I’m trying to make a request using dokan_seller_list_query and looking to what parameters I can put in the array to fetch a limited number of vendors that are up to X kilometers from a lat/long location provided.

    Any idea what I should do? or where should I start looking into it?
    I can set up an API endpoint that will be stand-alone, however, I would like to see if it is possible to fetch a limited number of vendors that are sorted by nearest to that lat/long.

    Thank you very much!

    The page I need help with: [log in to see the link]

Viewing 1 replies (of 1 total)
  • Hello @yohio ,

    Dokan Pro has a Geolocation module that can allow you to search stores from a specific area and you can also control the search radius. You can see the details here.

    If you are trying to make a custom search using API endpoint, then I will recommend you to check this doc – https://wedevsofficial.github.io/dokan/#get-all-stores

    You will get the “location” parameter from here that you can use to sort stores from a specific location.

    I hope this information helps.

    Thank you ??

Viewing 1 replies (of 1 total)
  • The topic ‘How to fetch nearby vendors and limit results’ is closed to new replies.