Google maps 谷歌地图找到其API不支持的位置';T

Google maps 谷歌地图找到其API不支持的位置';T,google-maps,google-api,Google Maps,Google Api,以下URL失败: 因此,该程序失败: #!/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,

以下URL失败:

因此,该程序失败:

#!/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();
然而,如果我在谷歌地图上搜索“智慧临终关怀英格兰罗切斯特高等银行”,它会给出以下信息:


想法?

您应该知道,地理编码API仅适用于街道地址,任何业务结果都不在范围之内

在你的例子中,“智慧临终关怀”是一个商业场所。在这种情况下,PlacesAPI是正确使用的API

您可以执行以下Places API请求以获取此位置:

可能重复的可能重复的可能重复的可能重复的