I want be able to have users search for other users based on distance. I thought I did it correctly but everytime I search I get no results.

Heres what I did:

  • Install location https://drupal.org/project/location
  • Enabled location /w location entity, location search, location taxonomy, user locations
  • Added location field to profile2 profile
  • Ran the US zipcode file that comes with the location module
  • Created a view to show profiles
  • Added a relationship to location
  • Added a filter of location proximity search based on zipcode and country /w a relation field_location
  • A solution would be to create a View of the users and have distance as an exposed filter. Commented Jan 22, 2014 at 9:23
  • I did that but always returns 0 results
    – Fluinc
    Commented Jan 22, 2014 at 16:46
  • I would have thought this would have worked for you. I used the geofield to have a location field in a content type and ip_geoloc for mapping. This worked for me and I'll try and see if there is anything else required to help you. Commented Jan 23, 2014 at 8:44
  • I had to re add my users locations. Cause when they added their locations the zip DB was not loaded.
    – Fluinc
    Commented Jan 24, 2014 at 17:04

1 Answer 1


Every I did above was correct. I needed to have my users re-enter there location so geo-coding would be added to their profile.

Your Answer

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

Not the answer you're looking for? Browse other questions tagged or ask your own question.