Geo-Coder-GooglePlaces

 view release on metacpan or  search on metacpan

README.md  view on Meta::CPAN

parameter, but this is not recommended.

You can optionally use your Places Premier Client ID, by passing your client
code as the `client` parameter and your private key as the `key` parameter.
The URL signing for Premier Client IDs requires the _Digest::HMAC\_SHA1_
and _MIME::Base64_ modules. To test your client, set the environment
variables GMAP\_CLIENT and GMAP\_KEY before running v3\_live.t

    GMAP_CLIENT=your_id GMAP_KEY='your_key' make test

You can get a key from [https://console.developers.google.com/apis/credentials](https://console.developers.google.com/apis/credentials).

## geocode

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

Queries _$location_ to Google Places geocoding API and returns hash
reference returned back from API server.
When you call the method in
an array context, it returns all the candidates got back, while it

lib/Geo/Coder/GooglePlaces/V3.pm  view on Meta::CPAN

parameter, but this is not recommended.

You can optionally use your Places Premier Client ID, by passing your client
code as the C<client> parameter and your private key as the C<key> parameter.
The URL signing for Premier Client IDs requires the I<Digest::HMAC_SHA1>
and I<MIME::Base64> modules. To test your client, set the environment
variables GMAP_CLIENT and GMAP_KEY before running v3_live.t

  GMAP_CLIENT=your_id GMAP_KEY='your_key' make test

You can get a key from L<https://console.developers.google.com/apis/credentials>.

=cut

sub new {
    my($class, %args) = @_;

	if(!defined($class)) {
		# Geo::Coder::GooglePlaces::new() used rather than Geo::Coder::GooglePlaces::new()
		$class = __PACKAGE__;
	} elsif(ref($class)) {



( run in 0.241 second using v1.01-cache-2.11-cpan-4d50c553e7e )