Android Geocoder.getFromLocationName stops working with restrictions

I use Geocoder.getFromLocationName to check the address inserted by the user. I check the returned ArrayList array, and if it expresses one result, everything is fine. I also use borders, so I get results only in a certain area ( Geocoder ). This worked fine for a long time before it suddenly stopped working last week. The returned results are now always the same and always have nothing to do with the string that I passed as the address name ...

When I delete borders, it works fine. Does anyone encounter similar problems? Does Google change something in the implementation of the function?

+4
source share
1 answer

We also began to experience this recently. I found this error that someone filed two days ago on the AOSP tracker:

https://code.google.com/p/android/issues/detail?id=75575

I also created a small open source project to demonstrate the problem:

https://github.com/barbeau/GeocoderDemo

As you say, it always returns the same general results no matter what the search term means if you use a bounding box:

Android Geocoder returns very generic results with bounding box

Without a bounding box, it correctly returns results related to the search query, although they are global in volume and cannot be used without further filtering.

, Google Android AOSP " ", , .

Android:

https://groups.google.com/forum/#!topic/android-developers/KuZDVRXyTc0

... Google+ :

https://plus.google.com/+SeanBarbeau/posts/Mm5YwzeUoZV

2014 , .

+3

All Articles