Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

Tags:

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
like image 836
GordonWORK Avatar asked Jan 15 '16 10:01

GordonWORK


People also ask

What is geocoder in Python?

geopy is a Python client for several popular geocoding web services. geopy makes it easy for Python developers to locate the coordinates of addresses, cities, countries, and landmarks across the globe using third-party geocoders and other data sources.

What is Geocoder service?

The process of geocoding turns a textual representation of a place or address into a map representation of its location. Geocoding allows you to find and display addresses on a map and see how they relate to surrounding features.

What is Geocoder Java?

java.lang.Object. ↳ android.location.Geocoder. A class for handling geocoding and reverse geocoding. Geocoding is the process of transforming a street address or other description of a location into a (latitude, longitude) coordinate.

What is the use of geocoder?

Geocoding is the process of transforming a description of a location—such as a pair of coordinates, an address, or a name of a place—to a location on the earth's surface. You can geocode by entering one location description at a time or by providing many of them at once in a table.


1 Answers

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.

like image 154
GordonWORK Avatar answered Oct 06 '22 22:10

GordonWORK