topical media & game development
mashup-gmaps-ch11inserter.pl / pl
#!/usr/bin/perl
use strict;
use LWP::UserAgent;
use URI::Escape;
use Data::Dumper;
use DBI;
my dbh))
{
die "Couldn't open connection to database\n";
}
my response = ARGV[0],var = var =~ m/<a href="\/maps(.*?)\ \;\-\ \;/g);
my entity (@matches)
{
my (lng,tel,addb) = (lat,addb);
dbh->quote(dbh->quote(dbh->quote(dbh->quote(dbh->quote(dbh->quote(dbh->quote(text) = @_;
my ua->get('http://maps.google.com/maps?q=' . uri_escape(var = lat,var =~ m/GLatLng\(([-\d.]+).*?([-\d.]+)\)/ms );
return (lng);
}
(C) Æliens
20/2/2008
You may not copy or print any of this material without explicit permission of the author or the publisher.
In case of other copyright issues, contact the author.