Skip to content

Commit e444dda

Browse files
committed
overloaded position getter and setter
1 parent 7e9a20a commit e444dda

File tree

1 file changed

+24
-2
lines changed

1 file changed

+24
-2
lines changed

src/main/java/mil/nga/sf/geojson/Point.java

Lines changed: 24 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ public mil.nga.sf.Geometry getGeometry() {
8080
* @return the coordinates
8181
*/
8282
public Position getCoordinates() {
83-
return position;
83+
return getPosition();
8484
}
8585

8686
/**
@@ -90,7 +90,29 @@ public Position getCoordinates() {
9090
* coordinates
9191
*/
9292
public void setCoordinates(Position coordinates) {
93-
this.position = coordinates;
93+
setPosition(coordinates);
94+
}
95+
96+
/**
97+
* Get the position
98+
*
99+
* @return position
100+
* @since 3.0.0
101+
*/
102+
@JsonIgnore
103+
public Position getPosition() {
104+
return position;
105+
}
106+
107+
/**
108+
* Set the position
109+
*
110+
* @param position
111+
* position
112+
* @since 3.0.0
113+
*/
114+
public void setPosition(Position position) {
115+
this.position = position;
94116
}
95117

96118
/**

0 commit comments

Comments
 (0)