• I’m wanting to return the closest store, taking in to account mountain ranges and rivers that in our situation sometimes lead to the closest store being much further away by car than the second closest store.

    Is there a filter or customisation I can make to return the driving distance instead of the regular distance, and sort results that way?

    Thanks,
    Hamish

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

    (@tijmensmit)

    I don’t have any code snippets that will fix this, but if your comfortable with code, then I can point you in the right directions.

    Do be aware that this will require calls to the Directions API for each individual result ( which may slow things down ), and this may also based on how much traffic you get on your site result in a high bill from Google Maps due to the API usage.

Viewing 1 replies (of 1 total)
  • The topic ‘Sort by road distance, not as-the-crow-flies?’ is closed to new replies.