Subject: | Geo::Coder::Google::V3 no longer working for non-Maps for Work requests |
Date: | Thu, 20 Nov 2014 15:37:36 +0100 |
To: | bug-Geo-Coder-Google [...] rt.cpan.org |
From: | "Klaus S. Madsen" <ksm [...] jobindex.dk> |
Hi,
When a non-"Maps for Work" request is being sent to Google, the supplied
API-key is not included in the query-string.
This has worked until today, but now Google is (reasonably enough)
rejecting these requests with the error "Over query limit". Adding the
key to the query-string solves this issue.
As a side issue, the documentation for the Geocoder API states that
HTTPS is enforced for API-requests that include a key. So the module
might as well always access the API through HTTPS.
The attached patch implement both changes. As I don't have a Maps for
Work account to test with, I haven't tested that part of the module.
--
Klaus S. Madsen, Udvikler, ksm@jobindex.dk
Jobindex A/S, Holger Danskes Vej 91, 2000 Frederiksberg
Tlf +45 38 32 33 55, Dir +45 38 32 33 70
http://www.jobindex.dk/
Message body is not shown because sender requested not to inline it.