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
Comment #1
yesct commentedtagging.
Please confirm that this is still a problem in the latest dev version. Thanks.
Comment #2
jackspiv commentedI 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.
Comment #3
yesct commentedI dont use 5.x, but I hope someone who does can respond.
Comment #4
ButterFly-2 commentedsubscribe
Comment #5
ButterFly-2 commentedThis 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'])) {
Comment #6
ankur commentedComment #7
ButterFly-2 commented