PHP

Moderators: None (Apply to moderate this forum)
Number of threads: 1854
Number of posts: 5039

This Forum Only
Post New Thread
Single Post View       Linear View       Threaded View      f

Report
postal/zip codes to latitude/longitude? Posted by Josh Code on 6 Mar 2011 at 10:59 PM
Hi,

How would you use PHP to convert a given postal code or zip code to latitude and longitude?

Thanks in advance.
Report
Re: postal/zip codes to latitude/longitude? Posted by pseudocoder on 16 Mar 2011 at 11:44 PM
You might try http://www.boutell.com/zipcodes/ and download the data file, add it to a database, and then pull the lat/long when you query a zipcode. If you don't have a db, you could probably do the same with a flat file.

HTH



 

Recent Jobs

Official Programmer's Heaven Blogs
Web Hosting | Browser and Social Games | Gadgets

Popular resources on Programmersheaven.com
Assembly | Basic | C | C# | C++ | Delphi | Flash | Java | JavaScript | Pascal | Perl | PHP | Python | Ruby | Visual Basic
© Copyright 2011 Programmersheaven.com - All rights reserved.
Reproduction in whole or in part, in any form or medium without express written permission is prohibited.
Violators of this policy may be subject to legal action. Please read our Terms Of Use and Privacy Statement for more information.
Operated by CommunityHeaven, a BootstrapLabs company.