I'm trying to use the module Geo::Coder::Google, but I keep getting an error when I try to run it. I've searched around an my code is very similar (basically identical) to other code I have seen, and they say their code runs. My first thought when receiving the error was that I had left out the API key was I went to Google and got one of those. Unfortunately the error persisted. This leads me to believe that I am missing something, but I haven't been able to figure out what that is. I'm hoping someone can point me in the direction of what other code I need to add in order to get functioning. Thank you in advance.
Here is error I'm receiving: Google Maps API returned error: 500 Can't verify SSL peers without knowing which Certificate Authorities to trust at test.pl line 7.
Here is my code:
1:#!/usr/bin/perl 2:use strict; 3:use warnings; 4: 5:use Geo::Coder::Google; 6:my $geocoder = Geo::Coder::Google->new( apiver => 3, gl => 'us', api +key => 'My API Key Here' ); 7:my $location = $geocoder->geocode( location => 'Mount Vernon, IN' ); 8: 9:print "$location->{'geometry'}->{'location'}->{'lat'}"; 10:print "$location->{'geometry'}->{'location'}->{'lng'}";
In reply to Error trying to use Geo::Coder::Google by brayk1990
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |