Placemark serialization bug solved

This commit is contained in:
Lennart Hensler committed 2012-01-18 14:34:36 +01:00
1 parent 849df66d9c
commit ca803b68f6
9 files changed
+167 -173

No files matched your search

@@ -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;
}