Register   Login
     
  Latest Posts  
News Articles Read more page uses admin skin
by kfarrell on 11/22/2008 8:56 AM
RE: List Properties by User
by aviavia on 11/22/2008 7:03 AM
List Properties by User
by rodneyjoyce on 11/22/2008 6:44 AM
[RSSLINKENCODED] request.
by aviavia on 11/22/2008 6:41 AM
RE: Date Type
by rodneyjoyce on 11/22/2008 3:26 AM
Date Type
by rodneyjoyce on 11/22/2008 3:21 AM
Default Location Data
by rodneyjoyce on 11/22/2008 3:06 AM
RE: AutoFill fields by selection Type
by rodneyjoyce on 11/22/2008 3:05 AM
RE: SEO for listing view
by rodneyjoyce on 11/22/2008 3:04 AM
RE: Comments questions
by macounwr on 11/22/2008 2:28 AM
  Forums  
Subject: Searching by zip code & miles
Prev Next
You are not authorized to post a reply.

Author Messages
stephanie balzaUser is Offline
Registered Users
Nuke Wiz
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 McCullochUser is Offline
Administrators
Nuke Master
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 balzaUser is Offline
Registered Users
Nuke Wiz
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 WebsterUser is Offline
Gold Membership
Nuke Wiz
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 McCullochUser is Offline
Administrators
Nuke Master
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 WebsterUser is Offline
Gold Membership
Nuke Wiz
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 WebsterUser is Offline
Gold Membership
Nuke Wiz
Nuke Wiz
Posts:168


6/01/2007 7:30 AM  
sent

Steven Webster
Overlook Technologies
Steven WebsterUser is Offline
Gold Membership
Nuke Wiz
Nuke Wiz
Posts:168


6/01/2007 7:30 AM  
sent

Steven Webster
Overlook Technologies
Steven WebsterUser is Offline
Gold Membership
Nuke Wiz
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 JohnstonUser is Offline
Gold Membership
Nuke Super Newbie
Nuke Super Newbie
Posts:16

9/09/2008 7:14 PM  

+1 on this please.. TJ

csternUser is Offline
Gold Membership
Nuke Newbie
Nuke Newbie
Posts:3

10/24/2008 9:38 AM  
Just wondering if this is even on the enhancement list?

Thanks!
bennyjUser is Offline
Gold Membership
Nuke Addict
Nuke Addict
Posts:72


10/24/2008 12:51 PM  
Posted By cstern on 10/24/2008 9:38 AM
Just wondering if this is even on the enhancement list?

Thanks!



Yep! Take a look here

http://www.ventrian.com/Resources/Blog/tabid/243/articleType/ArticleView/articleId/383/Geocoding-with-Property-Agent.aspx

You are not authorized to post a reply.
Forums > Modules > Property Agent > Searching by zip code & miles



ActiveForums 3.7