Main > Programming > Libraries >

Geo::Coder::Google 0.02

Geo::Coder::Google 0.02

Sponsored Links

Geo::Coder::Google 0.02 Ranking & Summary

RankingClick at the star to rank
Ranking Level
User Review: 0 (0 times)
File size: 0.004 MB
Platform: Any Platform
License: Perl Artistic License
Price:
Downloads: 1078
Date added: 2006-11-21
Publisher: Tatsuhiko Miyagawa

Geo::Coder::Google 0.02 description

Geo::Coder::Google is a Perl module for Google Maps Geocoding API.

SYNOPSIS

use Geo::Coder::Google;

my $geocoder = Geo::Coder::Google->new(apikey => Your API Key);
my $location = $geocoder->geocode( location => Hollywood and Highland, Los Angeles, CA );

Geo::Coder::Google provides a geocoding functionality using Google Maps API.

METHODS

new

$geocoder = Geo::Coder::Google->new(apikey => Your API Key);
$geocoder = Geo::Coder::Google->new(apikey => Your API Key, host => maps.google.co.jp);

Creates a new geocoding object. You should pass a valid Google Maps API Key as apikey parameter.

When youd like to query Japanese address, you might want to set host parameter, which should point to maps.google.co.jp. I think this also applies to other countries like UK (maps.google.co.uk), but so far I only tested with .com and .co.jp.

geocode

$location = $geocoder->geocode(location => $location);
@location = $geocoder->geocode(location => $location);

Queries $location to Google Maps geocoding API and returns hash refernece returned back from API server. When you cann the method in an array context, it returns all the candidates got back, while it returns the 1st one in a scalar context.
When youd like to pass non-ascii string as a location, you should pass it as either UTF-8 bytes or Unicode flagged string.

Returned data structure is as follows:

{
AddressDetails => {
Country => {
AdministrativeArea => {
SubAdministrativeArea => {
SubAdministrativeAreaName => San Francisco,
Locality => {
PostalCode => {
PostalCodeNumber => 94107
},
LocalityName => San Francisco,
Thoroughfare => {
ThoroughfareName => 548 4th St
}
}
},
AdministrativeAreaName => CA
},
CountryNameCode => US
}
},
address => 548 4th St, San Francisco, CA 94107, USA,
Point => {
coordinates => [
-122.397323,
37.778993,
0
]
}
}

Geo::Coder::Google 0.02 Screenshot

Advertisements

Geo::Coder::Google 0.02 Keywords

Bookmark Geo::Coder::Google 0.02

Hyperlink code:
Link for forum:

Geo::Coder::Google 0.02 Copyright

WareSeeker periodically updates pricing and software information of Geo::Coder::Google 0.02 full version from the publisher, so some information may be slightly out-of-date. You should confirm all information before relying on it. Software piracy is theft, Using crack, password, serial numbers, registration codes, key generators is illegal and prevent future development of Geo::Coder::Google 0.02 Edition. Download links are directly from our publisher sites, torrent files or links from rapidshare.com, yousendit.com or megaupload.com are not allowed

Allok Video Splitter 2.2.0 Review:

Name (Required)
Email(Required)
Captcha
Featured Software

Want to place your software product here?
Please contact us for consideration.

Contact WareSeeker.com
Related Software
Geo::Google is a Perl module to perform geographical queries using Google Maps. Free Download
Geo::Coder::Yahoo is a Perl module with geocode addresses with the Yahoo! API. Free Download
Geo::Google::Path is a path, by automobile, between two loci. Free Download
Plone Google Maps is a product which enables integration of Google Maps into Plone sites. Free Download
Geo::Google::Segment is an annotated segment of a path. Free Download
Geo::Google::Location is a geographical point. Free Download
Geo::Coder::YahooJapan is a simple wrapper for Yahoo Japan Geocoder API. Free Download
Lyrics::Fetcher::Google is a Perl module to get some lyrics. Free Download