diff --git a/src/main/java/fr/dudie/nominatim/model/Address.java b/src/main/java/fr/dudie/nominatim/model/Address.java index 8baae7c..b1076a2 100644 --- a/src/main/java/fr/dudie/nominatim/model/Address.java +++ b/src/main/java/fr/dudie/nominatim/model/Address.java @@ -24,6 +24,7 @@ import com.google.gson.annotations.SerializedName; import com.vividsolutions.jts.geom.Geometry; +import java.io.Serializable; /** * Represents a search result. @@ -72,7 +73,7 @@ * * @author Jérémie Huchet */ -public final class Address { +public final class Address implements Serializable { /** The OpenStreetMap place id. */ @SerializedName("place_id") diff --git a/src/main/java/fr/dudie/nominatim/model/BoundingBox.java b/src/main/java/fr/dudie/nominatim/model/BoundingBox.java index 3cc1461..0253745 100644 --- a/src/main/java/fr/dudie/nominatim/model/BoundingBox.java +++ b/src/main/java/fr/dudie/nominatim/model/BoundingBox.java @@ -22,6 +22,8 @@ * [/license] */ +import java.io.Serializable; + /** * Represents a viewport. * @@ -36,7 +38,7 @@ * * @author Jérémie Huchet */ -public class BoundingBox { +public class BoundingBox implements Serializable { /** The north bound of the boundingbox. */ private double north; diff --git a/src/main/java/fr/dudie/nominatim/model/Element.java b/src/main/java/fr/dudie/nominatim/model/Element.java index 5b20631..227c6db 100644 --- a/src/main/java/fr/dudie/nominatim/model/Element.java +++ b/src/main/java/fr/dudie/nominatim/model/Element.java @@ -22,6 +22,8 @@ * [/license] */ +import java.io.Serializable; + /** * Represents an address element or nameDetails element. *

@@ -57,7 +59,7 @@ * * @author Jérémie Huchet */ -public class Element { +public class Element implements Serializable { /** The element key. */ private String key; diff --git a/src/main/java/fr/dudie/nominatim/model/PolygonPoint.java b/src/main/java/fr/dudie/nominatim/model/PolygonPoint.java index 7f0e160..43bb3c3 100644 --- a/src/main/java/fr/dudie/nominatim/model/PolygonPoint.java +++ b/src/main/java/fr/dudie/nominatim/model/PolygonPoint.java @@ -22,12 +22,14 @@ * [/license] */ +import java.io.Serializable; + /** * Represents a geographical location. * * @author Jérémie Huchet */ -public class PolygonPoint { +public class PolygonPoint implements Serializable { /** The point's longitude. */ private double longitude;