Em Andamento

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

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"

[url removed, login to view];hl=en&q=2077,+hornsby+Australia

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

{center: {lat: [url removed, login to view],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.


2077 hornsby,[url removed, login to view],151.098696


$var = file_get_contents("[url removed, login to view];hl=en&q=$postcode,+Australia");

preg_match('*(lat="-?d+.d+" lng="-?d+.d+").*', $var,


$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.

[url removed, login to view]

[url removed, login to view]

[url removed, login to view]

[url removed, login to view];rnum=2

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

Habilidades: .NET, Programação C, Perl, PHP, Visual Basic

Ver mais: scrape latitude longitude google maps, scrape latitude longitude, lat postcode australia google map, php preg_match longitude latitude, google maps api australia longitude latitude, russia latitude longitude list postcode, longitude latitude hornsby, google maps latitude longitude vb6, latitude longitude creator, the p.i.c. group, php examples with source code, php codes list, p&a group, out source australia, matches list, list of websites, list matches, how to get cgi, hl group, google maps get map, data tutorials, could of, code group, code 6 d, blog uk need ideas

Acerca do Empregador:
( 1 comentário ) Gold Coast, United States

ID do Projeto: #152086