Skip to content

Commit

Permalink
[feat] #7 geojson data modeling
Browse files Browse the repository at this point in the history
 - Point.java added with tests
 - Position updated with new method to get coordinates as array

 -
  • Loading branch information
Ramachandran Nellaiyappan committed Mar 14, 2024
1 parent 05de2ea commit 355ff72
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,8 @@ public static Point of(GeoJsonType type, Position coordinates) {
return new Point(coordinates);
}

public static Point of(Position position) {
return new Point(position);
public static Point of(Position coordinates) {
return of(GeoJsonType.POINT, coordinates);
}

}

0 comments on commit 355ff72

Please sign in to comment.