mirror of
https://github.com/eclipse-sailing-analytics/sailing-analytics.git
synced 2026-11-07 11:32:16 +00:00
Placemark serialization bug solved
This commit is contained in:
1 parent
849df66d9c
commit
ca803b68f6
9 files changed
+167
-173
No files matched your search
+2
-2
@@ -167,12 +167,12 @@ public class ReverseGeocoderImpl implements ReverseGeocoder {
|
||||
} catch (ClassCastException e) {
|
||||
lngDeg = ((Long) json.get("lng")).doubleValue();
|
||||
}
|
||||
// SerializablePosition position = new SerializablePositionImpl(latDeg, lngDeg);
|
||||
SerializablePosition position = new SerializablePositionImpl(latDeg, lngDeg);
|
||||
|
||||
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;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user