I am trying to add location filtering via this post and his first step is Make sure you have ‘geo_lat’ and ‘geo_meta’ keys set up. These are needed for the below code to work. Where would I go to make sure these are set? I understand these are metadata keys but I can’t seem to find them.
I think he means that you have to set up a Profile field for zipcodes.
Once you do that, adjust function set_lat_long so that it uses the field_id for that field.
Then, if a member has entered a zipcode, a geo_lat and geo_long metadata should be created.
Is distance searching really important to you?
Would a google map showing the location of members be just as or more useful?
Well I think the idea for distance searching is to return matches/users that are closer to you.
But maybe I am confused about what this code actually does… all users have to fill out a zip code, and I have a search members page where I am able to add form fields as search options/filters.
I am trying to add a search option for distance with values (5 miles, 10 miles, etc…). I guess looking at the code, this wouldn’t do what I’m looking for? If not, any idea how I can get that sort of functionality?