mirror of
https://github.com/eclipse-sailing-analytics/sailing-analytics.git
synced 2026-11-01 00:30:46 +00:00
Name and CountryCode Attributes are not the problem
This commit is contained in:
1 parent
fc05cda6fa
commit
94fc9816df
7 files changed
+299
-299
No files matched your search
+3
-3
@@ -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));
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in new issue
Block a user