In many sites, the user is asked to enter state, city or zip in one exposed filter field.
Current location module provides one field for each.

If not possible,
I was thinking to create a taxonomy vocabulary as tag and use that as exposed filter with state, city, and zip together entered by user.

Please let me know your thoughts

Thanks

Comments

soulston’s picture

Hi,

Firstly thanks for an excellent module - amazed how easy it was to get going,

I'm looking to do exactly as above. I think it's quite a common requirement for directory type sites where people usually say:

I'm looking for a __service__ in __place__

Where the first item will be an exposed filter of taxonomy terms attached to your nodes and the second should be a location but can take either Post/Zip Code, County, City, Town etc.

I have this setup for Post codes (the equivalent of zip in the states), but can't figure out how to make this single location field accept a county, City or Town.

Thanks

soulston’s picture

StatusFileSize
new33.72 KB

Oddly, after writing this I just thought I would see what would happen if I put in a town or city into my Proximity field and it worked!

I'm not sure if this has something to do with the settings at: admin/settings/location/geocoding

I have mine set at county level as you can see in the screen shot.

ANyhow - it works!

sbydrupal’s picture

Thx!! I will check this out, simple but important feature.

sbydrupal’s picture

Hi Soulston,

Could you please pass your configuration options of proximity filter as I can't seem to make it work.

Which version of Location ?
What option is chosen under "Origin" filter ?
...

Spent some good few hours, and can't even get proximity filter to work with postal code option as default functionality.

Thanks

sbydrupal’s picture

Hi Soulston,

Could you please pass your configuration options of proximity filter as I can't seem to make it work.

Which version of Location ?
What option is chosen under "Origin" filter ?
...

Spent some good few hours, and can't even get proximity filter to work with postal code option as default functionality.

Thanks

sbydrupal’s picture

Hi Soulston,

Could you please pass your configuration options of proximity filter as I can't seem to make it work.

Which version of Location ?
What option is chosen under "Origin" filter ?
...

Spent some good few hours, and can't even get proximity filter to work with postal code option as default functionality.

Thanks

sbydrupal’s picture

Hi Soulston,

Could you please pass your configuration options of proximity filter as I can't seem to make it work.

Which version of Location ?
What option is chosen under "Origin" filter ?
...

Spent some good few hours, and can't even get proximity filter to work with postal code option as default functionality.

Thanks

sbydrupal’s picture

Hi Soulston,

Could you please pass your configuration options of proximity filter as I can't seem to make it work.

Which version of Location ?
What option is chosen under "Origin" filter ?
...

Spent some good few hours, and can't even get proximity filter to work with postal code option as default functionality.

Thanks

dannypfeiffer’s picture

Hate to post on an old thread, but Soulston, I'm also curious how you achieved this, can you elaborate?

soulston’s picture

StatusFileSize
new84.45 KB
new165.82 KB
new156.03 KB

These are the two filters in the view that do the work. You could try these settings first but you probably also need to make sure your geo settings are correct too. I exposed these filters but it's the same result either way.

The filter options are:

Taxonomy: Term ID (with depth) exposed
Location: Distance / Proximity

I'm also adding the distance / location as a field and there are some extra settings in the field that you might want to look at.

legolasbo’s picture

Issue summary: View changes
Status: Active » Closed (outdated)

Closing old D6 issues as D6 is end of life