我已经使用以下代码成功使用了谷歌地理编码器:
Geocoder geoCoder = new Geocoder(this, Locale.getDefault());
try {
List<Address> addresses = geoCoder.getFromLocationName(search, 5);
...
} catch (IOException e) {
...
}
最近它停止返回任何结果,即使是像“法国巴黎”这样的东西。它不会抛出任何异常,但会在 LogCat 中输出失败:
07-09 12:05:06.555: W/GlsClient(720): forwardGeocode(): GLS failed with status 5
我一直在搜索列出可能的故障状态代码的任何文档,但 Geocoder API 文档没有列出它们,而且似乎没有任何“GlsClient”文档。
谁能给我指出正确的方向?