Skip to content
This repository was archived by the owner on Feb 22, 2023. It is now read-only.
Closed
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
Original file line number Diff line number Diff line change
Expand Up @@ -201,7 +201,13 @@ static Object latLngToJson(LatLng latLng) {
return Arrays.asList(latLng.latitude, latLng.longitude);
}

private static LatLng toLatLng(Object o) {

static Object pointToJson(Point resp) {
return Arrays.asList(resp.x,resp.y);
}


static LatLng toLatLng(Object o) {
final List<?> data = toList(o);
return new LatLng(toDouble(data.get(0)), toDouble(data.get(1)));
}
Expand Down Expand Up @@ -587,4 +593,6 @@ private static Cap toCap(Object o) {
throw new IllegalArgumentException("Cannot interpret " + o + " as Cap");
}
}


}
Loading