Am I missing something?

Have US zipcodes in database from 5.x-3.0 test2
Did not update database of zipcodes for rc2

Proximity search seems to work for lat/long and map selection

but I don't see any fields like in test2 for zipcode?

Is a zipcode proximity still possible?

Comments

yesct’s picture

Status: Active » Postponed (maintainer needs more info)
Issue tags: +location proximity view zip code

tagging.

Please confirm that this is still a problem in the latest dev version. Thanks.

jackspiv’s picture

I have not loaded the dev version and I'm under time constraint right now so it might be a month or so till I can do that.

I have found how this works and it does seem to. I had missed somehow that there is now a location tab. My recollection was that zipcode search was available previously on the user search tab. Is this correct and/or is there somehow a setting I've missed in the new version?

Also, related, is there a way to make the "proximity" group link visible in the open display form so that users who want this feature are not confused if they miss the link or the wording proximity? I think it was open by default in the previous version that I used.

Thanks so much for responding.

yesct’s picture

Status: Postponed (maintainer needs more info) » Active

I dont use 5.x, but I hope someone who does can respond.

ButterFly-2’s picture

subscribe

ButterFly-2’s picture

This is my first post offering what I have learned. I'm sure others have resolved this issue for themselves but I wanted to share how I resolved this issue after reading several posts and trying several options:

Proximity Search Solution

1) loaded in us zipcodes
2) Added a computed field
3) Modified Line 948 in location_views_module

1) Using PHPMyAdmin
Selected DB
Clicked Import (at top of screen)
Imported ...location/database/zipcodes.us.mysql

2) Computed Field
if (!$node->nid)
node_save($node);

$newzip1 = $node->locations[0]['postal_code'];
$temp_lid = location_save($node->locations[0], TRUE);

$result = db_fetch_array(db_query("SELECT latitude, longitude FROM {zipcodes} WHERE zip='%s'", $newzip1));

$node->locations[0]['latitude'] = $result[latitude];
$node->locations[0]['longitude'] = $result[longitude];
// $node_field[0]['value']= $result[latitude];

3) Modified location_views.module
Changed the Proximity filter logic
Changed line 948 to
if (is_array($filter['value']) && isset($filter['value']['latitude'])) {

ankur’s picture

Status: Active » Closed (fixed)
ButterFly-2’s picture

Title: not finding zipcode proximity search » Solved -not finding zipcode proximity search