Name and CountryCode Attributes are not the problem

This commit is contained in:
Lennart Hensler committed 2012-01-17 14:20:37 +01:00
1 parent fc05cda6fa
commit 94fc9816df
7 files changed
+299 -299

No files matched your search

@@ -172,7 +172,7 @@ public class ReverseGeocoderImpl implements ReverseGeocoder {
long population = (Long) json.get("population");
if (name != null && lngDeg != null && latDeg != null) {
return new PlacemarkImpl(name, countryCode, position, population);
return new PlacemarkImpl(name, countryCode/*, position, population*/);
} else {
return null;
}
@@ -190,8 +190,8 @@ public class ReverseGeocoderImpl implements ReverseGeocoder {
* The results of the search
*/
private void cachePlacemarks(Position position, Double radius, List<Placemark> placemarks) {
Collections.sort(placemarks, new Placemark.ByDistance(position));
cache.put(position, new Triple<Position, Double, List<Placemark>>(position, radius, placemarks));
// Collections.sort(placemarks, new Placemark.ByDistance(position));
// cache.put(position, new Triple<Position, Double, List<Placemark>>(position, radius, placemarks));
}
/**