User not logged in - login - register
Home Calendar Books School Tool Photo Gallery Message Boards Users Statistics Advertise Site Info
go to bottom | |
 Message Boards » » PHP mile/radius code Page [1]  
alf2g
Starting Lineup
50 Posts
user info
edit post

I see many websites such as dating sites/car sites that let users search for something and lets them enter the number of miles within a certain city or zip code.

I tried googling on how this can be done in php but couldn't find any good source. Is this possible in php or is it ASP only?

Any info is appreciated, thanks.

10/26/2006 11:20:31 PM

OmarBadu
zidik
25067 Posts
user info
edit post

what makes you think it can only be done in asp?

10/26/2006 11:28:08 PM

Ernie
All American
45943 Posts
user info
edit post

he doesn't know how to do it with PHP so he assumes it's only capable with ASP

are you dense or just trolling

10/26/2006 11:33:18 PM

philihp
All American
8349 Posts
user info
edit post

they don't support that.

10/26/2006 11:58:38 PM

mattc
All American
1172 Posts
user info
edit post

you'll need a database of coordinates for zip codes, there's no magic function for this. then just use some simple algebra and find the distance between the points.


or search google and click the first result
http://www.google.com/search?q=php+distance+between+zip+codes&ie=utf-8&oe=utf-8&rls=org.mozilla:en-GB:official&client=firefox-a

10/27/2006 12:46:52 AM

Noen
All American
31346 Posts
user info
edit post

^not very reliable.

What you need is a geocoder. http://geocoder.us/ is a free one, but you can only use it for non-commercial use, otherwise you have to buy a data package.

I actually wrote a geocoder that uses google maps as the query source, but it aint free.

To answer the original question, yes you could do it with PHP or any other language. You also are going to need a few billion bits of information and a monstrous database too though.

10/27/2006 1:45:22 AM

 Message Boards » Tech Talk » PHP mile/radius code Page [1]  
go to top | |
Admin Options : move topic | lock topic

© 2024 by The Wolf Web - All Rights Reserved.
The material located at this site is not endorsed, sponsored or provided by or on behalf of North Carolina State University.
Powered by CrazyWeb v2.38 - our disclaimer.