Re: [PHP] Zip Code Locator?
You could write your own. . . Just kidding... well, technically you could... but... that's not the point. http://sourceforge.net/projects/zipcodedb has a "Raw ZIP code dump"... It has a little more data than just zip, city, state... I don't know what it means, but maybe you would... Sorry, it's the best I could do => Ben On Mon, 23 Jul 2001, Vincent P. Cocciolone wrote: > Hi, > > Does anyone know where can I find documentation or example scripts for a zip code >locator. I'm looking for something that will list > other zip codes within a number of miles radius of the zip specified. > > Thanks! > > Vince > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > To contact the list administrators, e-mail: [EMAIL PROTECTED] > > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
RE: [PHP] Zip Code Locator?
Ben-- Thanks for pointing that out... I've been looking for info like that for a long time! Much appreciated. --Matt -Original Message- From: Ben Bleything [mailto:[EMAIL PROTECTED]] Sent: Tuesday, July 24, 2001 1:23 PM To: Vincent P. Cocciolone Cc: [EMAIL PROTECTED] Subject: Re: [PHP] Zip Code Locator? You could write your own. . . Just kidding... well, technically you could... but... that's not the point. http://sourceforge.net/projects/zipcodedb has a "Raw ZIP code dump"... It has a little more data than just zip, city, state... I don't know what it means, but maybe you would... Sorry, it's the best I could do => Ben On Mon, 23 Jul 2001, Vincent P. Cocciolone wrote: > Hi, > > Does anyone know where can I find documentation or example scripts for > a zip code locator. I'm looking for something that will list other zip > codes within a number of miles radius of the zip specified. > > Thanks! > > Vince > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] To > contact the list administrators, e-mail: [EMAIL PROTECTED] > > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
RE: [PHP] Zip Code Locator?
Hey, let me know if you figure out what the extra numbers are for... I might have a use for this at some point. Ben >From: "Matthew Loff" <[EMAIL PROTECTED]> >To: "'Ben Bleything'" <[EMAIL PROTECTED]>, "'Vincent P. Cocciolone'" <[EMAIL PROTECTED]> >Cc: <[EMAIL PROTECTED]> >Subject: RE: [PHP] Zip Code Locator? >Date: Tue, 24 Jul 2001 16:40:01 -0400 >MIME-Version: 1.0 >Content-Transfer-Encoding: 7bit >X-Priority: 3 (Normal) >X-MSMail-Priority: Normal >X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2462. >Importance: Normal > > >Ben-- > >Thanks for pointing that out... I've been looking for info like that for >a long time! > >Much appreciated. > >--Matt > > >-Original Message----- >From: Ben Bleything [mailto:[EMAIL PROTECTED]] >Sent: Tuesday, July 24, 2001 1:23 PM >To: Vincent P. Cocciolone >Cc: [EMAIL PROTECTED] >Subject: Re: [PHP] Zip Code Locator? > > >You could write your own. . . > >Just kidding... well, technically you could... but... that's not the >point. > >http://sourceforge.net/projects/zipcodedb has a "Raw ZIP code dump"... >It has a little more data than just zip, city, state... I don't know >what it means, but maybe you would... > >Sorry, it's the best I could do => > >Ben > >On Mon, 23 Jul 2001, Vincent P. Cocciolone wrote: > >> Hi, >> >> Does anyone know where can I find documentation or example scripts for > >> a zip code locator. I'm looking for something that will list other zip > >> codes within a number of miles radius of the zip specified. >> >> Thanks! >> >> Vince >> >> >> -- >> PHP General Mailing List (http://www.php.net/) >> To unsubscribe, e-mail: [EMAIL PROTECTED] >> For additional commands, e-mail: [EMAIL PROTECTED] To >> contact the list administrators, e-mail: [EMAIL PROTECTED] >> >> > > >-- >PHP General Mailing List (http://www.php.net/) >To unsubscribe, e-mail: [EMAIL PROTECTED] >For additional commands, e-mail: [EMAIL PROTECTED] To >contact the list administrators, e-mail: [EMAIL PROTECTED] > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
RE: [PHP] Zip Code Locator?
At 04:42 PM 7/24/2001, Benjamin Bleything wrote: i'm pretty sure that the extra numbers are coord of that town. you know the long and lat. ~kurth >Hey, let me know if you figure out what the extra numbers are for... I might >have a use for this at some point. > >Ben > > >From: "Matthew Loff" <[EMAIL PROTECTED]> > >To: "'Ben Bleything'" <[EMAIL PROTECTED]>, "'Vincent P. Cocciolone'" ><[EMAIL PROTECTED]> > >Cc: <[EMAIL PROTECTED]> > >Subject: RE: [PHP] Zip Code Locator? > >Date: Tue, 24 Jul 2001 16:40:01 -0400 > >MIME-Version: 1.0 > >Content-Transfer-Encoding: 7bit > >X-Priority: 3 (Normal) > >X-MSMail-Priority: Normal > >X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2462. > >Importance: Normal > > > > > >Ben-- > > > >Thanks for pointing that out... I've been looking for info like that for > >a long time! > > > >Much appreciated. > > > >--Matt > > > > > >-Original Message- > >From: Ben Bleything [mailto:[EMAIL PROTECTED]] > >Sent: Tuesday, July 24, 2001 1:23 PM > >To: Vincent P. Cocciolone > >Cc: [EMAIL PROTECTED] > >Subject: Re: [PHP] Zip Code Locator? > > > > > >You could write your own. . . > > > >Just kidding... well, technically you could... but... that's not the > >point. > > > >http://sourceforge.net/projects/zipcodedb has a "Raw ZIP code dump"... > >It has a little more data than just zip, city, state... I don't know > >what it means, but maybe you would... > > > >Sorry, it's the best I could do => > > > >Ben > > > >On Mon, 23 Jul 2001, Vincent P. Cocciolone wrote: > > > >> Hi, > >> > >> Does anyone know where can I find documentation or example scripts for > > > >> a zip code locator. I'm looking for something that will list other zip > > > >> codes within a number of miles radius of the zip specified. > >> > >> Thanks! > >> > >> Vince > >> > >> > >> -- > >> PHP General Mailing List (http://www.php.net/) > >> To unsubscribe, e-mail: [EMAIL PROTECTED] > >> For additional commands, e-mail: [EMAIL PROTECTED] To > >> contact the list administrators, e-mail: [EMAIL PROTECTED] > >> > >> > > > > > >-- > >PHP General Mailing List (http://www.php.net/) > >To unsubscribe, e-mail: [EMAIL PROTECTED] > >For additional commands, e-mail: [EMAIL PROTECTED] To > >contact the list administrators, e-mail: [EMAIL PROTECTED] > > > > >-- >PHP General Mailing List (http://www.php.net/) >To unsubscribe, e-mail: [EMAIL PROTECTED] >For additional commands, e-mail: [EMAIL PROTECTED] >To contact the list administrators, e-mail: [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] Zip Code Locator?
Kurth Bemis wrote: > > At 04:42 PM 7/24/2001, Benjamin Bleything wrote: > > i'm pretty sure that the extra numbers are coord of that town. you know > the long and lat. [== snip, snip ==] FWIW, here is the formula needed, here just a snippet getting the distance between two ZIP's, and, yes, Virginia, you have to have the latitude and longitude in radians: #== construct the computed distance field (artificial field) == $dist = "(ACOS(SIN($this->LAST_LAT) * "; $dist .= "SIN(LatRad) + "; $dist .= "COS($this->LAST_LAT) * "; $dist .= "COS(LatRad) * "; $dist .= "COS(LongRad -$this->LAST_LONG)) *"; $dist .= "3958.88012572)"; For this snippet, consider LAST_LAT and LAST_LONG the "first point" in this spherical geometry solution, nicely all done by MySQL. But you can do the formula in PHP, if you wish. -- > > >On Mon, 23 Jul 2001, Vincent P. Cocciolone wrote: > > > > > >> Hi, > > >> > > >> Does anyone know where can I find documentation or example scripts for > > > > > >> a zip code locator. I'm looking for something that will list other zip > > > > > >> codes within a number of miles radius of the zip specified. > > >> > > >> Thanks! > > >> > > >> Vince -- Justin Farnsworth Eye Integrated Communications 321 South Evans - Suite 203 Greenville, NC 27858 | Tel: (252) 353-0722 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
RE: [PHP] Zip Code Locator?
> Hey, let me know if you figure out what the extra numbers are > for... I might have a use for this at some point. The last two numbers are latitude and longitude of the registered zip code center for the given zip code. --- Brian S. Dunworth Sr. Software Development Engineer Oracle Database Administrator The Printing House, Ltd. (850) 875-1500 x225 --- -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]