From eef131a2a4dc4fda4a5ec4b87a0c0571b0ee9333 Mon Sep 17 00:00:00 2001 From: Peter-Josef Meisch Date: Fri, 8 Nov 2024 18:52:35 +0100 Subject: [PATCH] fix geohash conversion --- .../data/elasticsearch/utils/geohash/Geohash.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/main/java/org/springframework/data/elasticsearch/utils/geohash/Geohash.java b/src/main/java/org/springframework/data/elasticsearch/utils/geohash/Geohash.java index 410f06778..cc1f74e10 100644 --- a/src/main/java/org/springframework/data/elasticsearch/utils/geohash/Geohash.java +++ b/src/main/java/org/springframework/data/elasticsearch/utils/geohash/Geohash.java @@ -17,6 +17,7 @@ import java.util.ArrayList; import java.util.Collection; +import java.util.Locale; import org.springframework.util.Assert; @@ -84,7 +85,7 @@ public static String toLatLon(final String geohash) { Assert.notNull(geohash, "geohash must not be null"); var point = Geohash.toPoint(geohash); - return String.format("%f,%f", point.getLat(), point.getLon()); + return String.format(Locale.ROOT, "%f,%f", point.getLat(), point.getLon()); } /**