I haven’t test his code but…
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?