Skip Menu |

This queue is for tickets about the Geo-Coder-Google CPAN distribution.

Report information
The Basics
Id: 119288
Status: stalled
Priority: 0/
Queue: Geo-Coder-Google

People
Owner: Nobody in particular
Requestors: NHORNE [...] cpan.org
Cc:
AdminCc:

Bug Information
Severity: Unimportant
Broken in: 0.03
Fixed in: 0.03



Subject: API vs Google Maps
This is not a bug in G:C:G, however I'm raising this for your opinion. The following URL fails: https://maps.googleapis.com/maps/api/geocode/json?address=Wisdom+Hospice+High+Bank+Rochester+Kent+England&key=AIzaSyBwb2_9KgPAa0VZU7PRYe_6Yv8qvu2vcjw As a result this program fails: #!/usr/bin/env perl use strict; use warnings; use Geo::Coder::Google; use Data::Dumper; my $gcg = Geo::Coder::Google->new(apiver => 3); my @l = $gcg->geocode(location => 'Wisdom Hospice, High Bank, Rochester, Kent, England'); print Data::Dumper->new([@l])->Dump(); And yet, if I search for "wisdom hospice high bank rochester kent england" at google maps it works giving this: https://www.google.com/maps/place/Wisdom+Hospice/@51.3725664,0.5071468,17z/data=!3m1!4b1!4m5!3m4!1s0x47d8cce4198bb5ed:0xcc28f53d7161955d!8m2!3d51.3725631!4d0.5093408 Thoughts?
I got my answer at http://stackoverflow.com/questions/41209467/google-maps-finds-locations-that-its-api-doesnt Looks like G:C:G doesn't currently do what I need. I'll look into a solution.