GetAFreelancer.com
 
Find projectsSearch
Sign Up | Log in | Top Rated Users | Browse projects | Post Project | RSS feeds | Articles
 

Scrape or collect Latitude and Longitude for a list of postcodes,zipcodes very easy code example given

   Click here to post similar project

Scrape or collect Latitude and Longitude for a list of postcodes,zipcodes very easy code example given is project number 152086 posted at GetAFreelancer.com. Click here to post your own project.

Closed
(Selected Service Provider aruhat)
Status: Closed
Budget: $30-100
Created: 06/13/2007 at 20:42 EDT
Bidding Ends: 07/18/2007 at 20:42 EDT
Project Creator: JameMore View PM Post PM
Buyer Rating: 10.00/1010.00/1010.00/1010.00/1010.00/1010.00/1010.00/1010.00/1010.00/1010.00/10
(1 reviews)
Description: I need to get the Longitude and Latitude of a list of about 50 postcodes. I am looking for a simple application rather than for some one to manualy go out and do this. I belive it is possible to gain this data from map related websites such as g00gle or yah00.

Please see the following example on how this could be done on this example I am searching for the post code of "2077 hornsby"

http://maps.g00gle.com/maps?f=q&hl=en&q=2077,+hornsby+Australia

Look at source code returned and the Longitude and Latitude are displayed

{center: {lat: -33.704748,lng: 151.098696}


Here is some example code I do not mind what it is coded in but I would expect the script or application to be past a file with a list of postcodes and then for it to export the list of post codes with there correct Longitude and Latitude.

eg
2077 hornsby,-33.704748,151.098696


$postcode=urlencode($_GET['postcode']);
$var = file_get_contents("http://maps.google.com/maps?f=q&hl=en&q=$postcode,+Australia");
preg_match('*(lat="-?d+.d+" lng="-?d+.d+").*', $var,
$matches);
$latlong=explode(" ",$matches[1]);
$lat = substr(substr($latlong[0], 0, -1), 5);
$long = substr(substr($latlong[1], 0, -1), 5);
echo "Latitude: ".$lat."<br />";
echo "Longitude: ".$long."<br />";

Here are some more examples and ways of getting the Longitude and Latitude.

http://emad.fano.us/blog/?p=277
http://www.mattpryor.co.uk/tutorials/show/1/
http://www.tomanthony.co.uk/blog/geocoding-uk-postcodes-with-google-map-api/
http://groups.google.com/group/Google-Maps-API/browse_thread/thread/1ed2d33dc7ca0b67/f4a73e94b398f3fb?q=UK+postcode&rnum=2

Please let me know if have any ideas on how to get this data

Report violation
Job Type:
  • .NET
  • C/C++
  • Perl/CGI
  • PHP
  • Visual Basic
Database: MySQL
Operating system: MS Windows
Bid count: 24
Average bid: N/A

 

Related project
 
long term employees/business associates needed Featured
posted by websolutions08
Budget: N/A
 

FREE Trial project for new buyers!

 

View Project Message Board     Post Message on Project Message Board
Messages Posted: 0

If you are the project creator or one of the bidders Log in as project creator or bidder for more options

Bid on This Project

Service Providers PMB Bid Delivery Within Time of Bid Provider Rating
Bids are hidden by project creator. Log in as project creator or bidder as the project creator or as one of the bidders to view bids.
Bid on This Project

 

[ Join GAF Free ] [ Secure Forms ] [ Freelance ] [ Web Development ] [ Post Project Free ] [ Web Forms ]

What is GetAFreelancer.com? ( Read about the company )

We have thousands of satisfied clients around the world. It's easy, fun and very affordable to outsource your project with our site. If you never tried to contract work to another part of the world you have your chance today. Sign up free! Our escrow feature is developed to protect both buyers and sellers.

GetAFreelancer.com is one of the largest sites of its kind. We have earned a good reputation and you can trust us. A freelancer is an independent worker, not on salary, hired instead on a project basis. Our site is global and we have freelancers from India, Romania, Russia, Ukraine, United States, UK and many other parts of the world. Web Development doesn't have to be expensive. Outsourcing will cut your expenses by more than 50%.

Find Webmaster Resources and Webmaster Forum. Take a look at Search Engine Submission.