We need some help with Location.

We want to implement location based search. For example a drop down that says 5,10,20, 50 miles from (your home zip code) and have certain events in this range show up. How is this done with location. How can I set this up.

Right now we are using the Address and Zip code fields for the CCK module. But it is unclear on how they connect with the location module. Do they?

In addition, I want to have at least home zip code and work zip code displayed on certain profile pages not necessarily on the user page.

Thanks,
Chris

Comments

JStarcher’s picture

I really need this as well. I know there are some PHP classes for figuring zip code mileage but the only thing I can find you must pay for the script.

Thanks.

socialnicheguru’s picture

Can you share the URLs for these scripts. Thanks!

yesct’s picture

Status: Active » Postponed (maintainer needs more info)

If I understand correctly, you are using the address and zip cck fields, which I dont think interact with this module. Location has it's own cck field which includes fields like country, zip, street address, state, etc.

sounds like ultimately you would add cck fields to your content type. One location cck field for home, one for work, and then require or allow the zip code for both. But the zip code proximity search for cck location fields is a work in progress right now.

Eventually, there might be documentation at #359463: Howto: Zip/postal code proximity search using views and location (Drupal 6)

You might be interested in following http://groups.drupal.org/node/929
or #321114: Fixing exposed filters in Views for UK and US postal code proximity search (not cck location)

Since this is pretty old, I'll mark it as needs more info. And I'll close it in 2 weeks if there is no response.

yesct’s picture

Status: Postponed (maintainer needs more info) » Closed (fixed)