android - geocoder.getFromLocation();等待服务器响应超时

标签 android google-maps google-geocoder

我有一个推出市场超过 6 个月的 Android 应用程序,它使用 geocoder.getFromLocation()"translate" latitude经度到人类可读的地址:

Geocoder geocoder = new Geocoder(this, Locale.getDefault());
List<Address> addresses = geocoder.getFromLocation(latitude, longitude, 1);

一切正常直到 7 小时前(2016-01-15 04:00 UTC)。与 Google 支持部门合作,根据他们的建议,在此处发布问题,看看是否有人有解决此问题的想法。

I've talked with the Maps API's Engineering Team, and it seems that the Android Geocoder uses a different backend than the Geocoding API, which we support, so there is not much we can do from our side right now.

另外...

最佳答案

抱歉,这里更新晚了。来自 Google 于太平洋标准时间 2016 年 1 月 15 日 09:41 的回复...

...

After reviewing the information you provided, we believe that you may be affected by a known issue. Here are some details about the issue:

Description: At approximately 11PM PST on 2016-01-14, we began receiving reports that requests made via Android SDK's geocoder are timing. We have identified an outage in our backends which is responsible for the observed errors. Our Eng team is working to address the backend failures.

How to diagnose: Geocode requests using Android's getFromLocation() geocoder method (http://developer.android.com/reference/android/location/Geocoder.html) may return a timeout exception.

Workaround: There's no workaround available at this time, but we'll let you know if we learn of one. ...

根据我的记录,该服务已在 2016 年 1 月 15 日 12:00 到 18:00 PST 之间得到支持。

并且,感谢 Google 支持,在此正式回复之前让我更新。

关于android - geocoder.getFromLocation();等待服务器响应超时,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/34809551/

相关文章:

android - 如何在android中通过手指触摸移动图像?

java - 将变量和对象设置为 null 有帮助吗?

android - 无法从缓存 okHttp 和改造中加载数据

android - 分页库BoundaryCallback的onItemAtFrontLoaded()方法的作用是什么?

android - Geocoder.getFromLocation() 以阿拉伯语返回地址

java - Android Studio 0.2 应用使用谷歌地图 - Gradle 修改

javascript - jQuery - 加载/注入(inject)远程页面 DIV 和 jQuery 脚本

javascript - 在 Android 浏览器中使用 Google Maps Javascript API 双指缩放

javascript - 如何传递地理编码请求的 ID

android - android 中的 Geocoder 有时会在某些设备上给出 "Service not available error"。如何处理?