I would like to sort my results by proximity in Drupal 7 Views.

I have already read the geofield proximity in views topic.

But that tutorial is using a location provided by the user (exposed filter) and I would like to use the location provided by the HTML5 API call for an anonymous user, and want to order the results by distance.

Using the "current user" as source does not work, although the page asks for location from the browser.

Any help would be appreciated!

  • Is it working with exposed user (exposed filter) ? Apr 5, 2016 at 14:03
  • Yes, its working when exposed. Apr 5, 2016 at 16:07


Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Browse other questions tagged or ask your own question.