stephanie balza Registered Users
 Nuke Wiz Posts:104

 |
| 5/30/2007 2:29 PM |
|
| Hi, I haven't figured out how to set this up. I would like my visitors to be able to search by zip code and a specified mile radius like this website: http://www.premierbridewisconsin.com/listings.php?category=1. It lets users enter a zip code and select a mile radius (10 miles, 25 miles, 50 miles) to find businesses. I really like this set up how it is on top with the dropdown list. How can I set up the "Searching Miles" part? Thanks! |
|
|
|
|
Scott McCulloch Administrators
 Nuke Master Posts:12446


 |
| 5/31/2007 6:42 AM |
|
Property agent allows you to search on a custom field, i would take a gues that zip code is a single line textbox as a number.
So the search allows you to find that zip code currently and not the radius.
How do you calculate the radius in relation to the zip code? Is it everything within +20/-20 (for 20 mile radius?) |
|
Scott McCulloch Site Administrator |
|
|
stephanie balza Registered Users
 Nuke Wiz Posts:104

 |
| 5/31/2007 8:35 AM |
|
Yes, I would like the users to be able to enter a zip code and then have a drop down box where they can select the radius of 10, 20, 50, 100 miles. Would the module be able to figure out the radius for the zip codes or how does this work? I don't know too much about programming...Otherwise, it's not a big deal I can just use "Enter a zipcode" to search by. |
|
|
|
|
Steven Webster Gold Membership
 Nuke Wiz Posts:168


 |
| 5/31/2007 1:17 PM |
|
Scott, I've done this a bunch of times in my own modules (http://www.route66rv.com/Home/DealerLocator/DealerNetworkMap/tabid/10698/Default.aspx). You need to know the lat/lon of the propery (lookup using geo or zip code table) and the lat/lon of the user (entered or from profile)...you can then use a SQL function to add a distance column onto the returned results....then filter a where by on the chosen distance (30 miles).
It's also best to store the lat/lon on the property as a join will kill performance. I have some code I can donate if you consider adding it into the product. I too think this would be a terrific feature and one that would be considered "standard" for property searches. |
|
Steven Webster Overlook Technologies |
|
|
Scott McCulloch Administrators
 Nuke Master Posts:12446


 |
| 5/31/2007 7:20 PM |
|
HI Steven, if you could send that inormation through to support@ventrian.com that would be great.
I'm thinking the zip code entry may need to be another type of custom field to behave "special" in the search.
What also concerns me is that list of lat/long will probably be US based? |
|
Scott McCulloch Site Administrator |
|
|
Steven Webster Gold Membership
 Nuke Wiz Posts:168


 |
| 5/31/2007 8:36 PM |
|
Depending on the database, if you could hit one of the geocoding services with an address and postal code when a property is added, you should be able to retrieve a lat/lon from just about anywhere. You can purchase postal code lists but they are expensive and bloated with a lot of info which is not really required here.
I think this is how the GoMap module works as well.
I'll dig up the SQL tomorrow and email it to you. |
|
Steven Webster Overlook Technologies |
|
|
Steven Webster Gold Membership
 Nuke Wiz Posts:168


 |
| 6/01/2007 7:30 AM |
|
| sent |
|
Steven Webster Overlook Technologies |
|
|
Steven Webster Gold Membership
 Nuke Wiz Posts:168


 |
| 6/01/2007 7:30 AM |
|
| sent |
|
Steven Webster Overlook Technologies |
|
|
Steven Webster Gold Membership
 Nuke Wiz Posts:168


 |
| 8/20/2007 8:45 PM |
|
| Did this ever go anywhere? Seems like a terrific feature for this module given the push toward localized searches. Especially for real estate sites. |
|
Steven Webster Overlook Technologies |
|
|
Tim Johnston Gold Membership
 Nuke Super Newbie Posts:16

 |
| 9/09/2008 7:14 PM |
|
+1 on this please.. TJ |
|
|
|
|
cstern Gold Membership
 Nuke Newbie Posts:3

 |
| 10/24/2008 9:38 AM |
|
Just wondering if this is even on the enhancement list? Thanks! |
|
|
|
|
bennyj Gold Membership
 Nuke Addict Posts:72


 |
|