Skip to content

Commit

Permalink
#2024 Invert latitude and longitude values to match's opensearch format
Browse files Browse the repository at this point in the history
  • Loading branch information
hauck-jvsh committed Dec 12, 2023
1 parent 53039bd commit 0e740eb
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -646,7 +646,7 @@ private XContentBuilder getJsonMetadataBuilder(IItem item) throws IOException {
List<float[]> locations = new ArrayList<>(values.length);
for (int i = 0; i < values.length; i++) {
String[] coord = values[i].split(";");
float[] point = { Float.parseFloat(coord[0]), Float.parseFloat(coord[1]) };
float[] point = { Float.parseFloat(coord[1]), Float.parseFloat(coord[0]) };
locations.add(point);
}
builder.array(key, locations.toArray());
Expand Down

0 comments on commit 0e740eb

Please sign in to comment.