Skip to content
This repository has been archived by the owner on Nov 29, 2024. It is now read-only.

implement Serializable #30

Merged
merged 4 commits into from
Jun 18, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion src/main/java/fr/dudie/nominatim/model/Address.java
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@

import com.google.gson.annotations.SerializedName;
import com.vividsolutions.jts.geom.Geometry;
import java.io.Serializable;

/**
* Represents a search result.
Expand Down Expand Up @@ -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")
Expand Down
4 changes: 3 additions & 1 deletion src/main/java/fr/dudie/nominatim/model/BoundingBox.java
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,8 @@
* [/license]
*/

import java.io.Serializable;

/**
* Represents a viewport.
*
Expand All @@ -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;
Expand Down
4 changes: 3 additions & 1 deletion src/main/java/fr/dudie/nominatim/model/Element.java
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,8 @@
* [/license]
*/

import java.io.Serializable;

/**
* Represents an address element or nameDetails element.
* <p>
Expand Down Expand Up @@ -57,7 +59,7 @@
*
* @author Jérémie Huchet
*/
public class Element {
public class Element implements Serializable {

/** The element key. */
private String key;
Expand Down
4 changes: 3 additions & 1 deletion src/main/java/fr/dudie/nominatim/model/PolygonPoint.java
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down