geocoder.getFromLocation(); Timed out waiting for response from server

GordonWORK picture GordonWORK · Jan 15, 2016 · Viewed 8.9k times · Source

I have an Android App launched to market over 6 months, which uses geocoder.getFromLocation() to "translate" latitude and longitude to human readable addresses:

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

Everything were working fine until 7 hours ago (2016-01-15 04:00 UTC). Worked with Google Support and as per their suggestion, post the problem here to see if anyone have any idea to resolve this problem.

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.

In addition...

  • Is the issue happening in all Android devices? Yes
  • Can you access the following URL https://maps.googleapis.com/maps/api/geocode/json?address=Barcelona From a device presenting the issue? Yes. We can access it via browser in those Android devices.
  • Which version of Android do the devices have? Android versions ranging from 4.4.4 to 5.1.1

Answer

GordonWORK picture GordonWORK · Jan 18, 2016

Sorry for late update here. From the Google's response on 2016-01-15 09:41 PST...

...

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. ...

According to my records, the service has been backed between 2016-01-15 12:00 and 18:00 PST.

And, thanks for Google Support keep me updated before this official response.