I've had good luck with Yahoo's Maps service. You have to signup to get an app id. The API is really simple. Here is a modified chunk of code from my Dept of Health and Human Services/Google Map mashup for showing licensed daycare centers in a town.

#!/usr/bin/perl
use LWP::UserAgent;
use XML::Simple;
use CGI::Simple;

my $location="107 W 2nd Street, Valentine, NE 69201";
my $q=new CGI::Simple;
my $safe_loc=$q->url_encode($location);
my $geocode_url="http://api.local.yahoo.com/MapsService/V1/geocode?appid=$APP_ID&location=$safe";);
my $ua=LWP::UserAgent->new;
my $response=$ua->get($geocode_url);
if ($response->is_error) {
die $response->status_line;
}
my $xml=XMLin($response->content());
print "$xml->{'Result'}->{'Latitude'}, $xml->{'Result'}->{'Longitude'}\n";


Rick Smith wrote:
Anyone have a way to convert mass addresses into lat / long numbers ?

I have a spreadsheet of locations for a customer that I'd like to map in
Radio Mobile, and obviously need to do it via Lat/Long.

R


--
WISPA Wireless List: wireless@wispa.org

Subscribe/Unsubscribe:
http://lists.wispa.org/mailman/listinfo/wireless

Archives: http://lists.wispa.org/pipermail/wireless/

Reply via email to