Skip to content
This repository has been archived by the owner on May 27, 2024. It is now read-only.

Commit

Permalink
Fix #396 - Re-enable Android Geocoder
Browse files Browse the repository at this point in the history
It appears to have been working again for at least months (circa beginning 2015)
  • Loading branch information
barbeau committed Jan 8, 2016
1 parent d8c1252 commit 02d5d2c
Showing 1 changed file with 1 addition and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -175,8 +175,7 @@ public static ArrayList<CustomAddress> processGeocoding(Context context, Server
Geocoder gc = new Geocoder(context);
try {
List<Address> androidTypeAddresses;
//TODO Temporary workaround while Google does not solve the problem with Android Geocoder, see issue #396
/*if (selectedServer != null) {
if (selectedServer != null) {
androidTypeAddresses = gc.getFromLocationName(address,
context.getResources().getInteger(R.integer.geocoder_max_results),
selectedServer.getLowerLeftLatitude(),
Expand All @@ -186,13 +185,6 @@ public static ArrayList<CustomAddress> processGeocoding(Context context, Server
} else {
androidTypeAddresses = gc.getFromLocationName(address,
context.getResources().getInteger(R.integer.geocoder_max_results));
}*/
if (geocodingForMarker){
androidTypeAddresses = gc.getFromLocationName(address,
context.getResources().getInteger(R.integer.geocoder_max_results));
}
else{
androidTypeAddresses = new ArrayList<Address>();
}
for (Address androidTypeAddress : androidTypeAddresses){
addresses.add(new CustomAddress(androidTypeAddress));
Expand Down

0 comments on commit 02d5d2c

Please sign in to comment.