Skip to content

Commit 355ff72

Browse files
author
Ramachandran Nellaiyappan
committed
[feat] #7 geojson data modeling
- Point.java added with tests - Position updated with new method to get coordinates as array -
1 parent 05de2ea commit 355ff72

File tree

1 file changed

+2
-2
lines changed
  • src/main/java/com/github/nramc/dev/journey/api/geojson

1 file changed

+2
-2
lines changed

src/main/java/com/github/nramc/dev/journey/api/geojson/Point.java

+2-2
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,8 @@ public static Point of(GeoJsonType type, Position coordinates) {
2525
return new Point(coordinates);
2626
}
2727

28-
public static Point of(Position position) {
29-
return new Point(position);
28+
public static Point of(Position coordinates) {
29+
return of(GeoJsonType.POINT, coordinates);
3030
}
3131

3232
}

0 commit comments

Comments
 (0)