0

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. – therobyouknow Jan 22 '14 at 9:23
  • I did that but always returns 0 results – Fluinc Jan 22 '14 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. – therobyouknow Jan 23 '14 at 8:44
  • I had to re add my users locations. Cause when they added their locations the zip DB was not loaded. – Fluinc Jan 24 '14 at 17:04
0

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.

| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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