Skip to content

Commit 7f5bfff

Browse files
authored
fix geohash conversion
Original Pull Request #3002 Closes #3001
1 parent 6117694 commit 7f5bfff

File tree

1 file changed

+2
-1
lines changed
  • src/main/java/org/springframework/data/elasticsearch/utils/geohash

1 file changed

+2
-1
lines changed

src/main/java/org/springframework/data/elasticsearch/utils/geohash/Geohash.java

+2-1
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717

1818
import java.util.ArrayList;
1919
import java.util.Collection;
20+
import java.util.Locale;
2021

2122
import org.springframework.util.Assert;
2223

@@ -84,7 +85,7 @@ public static String toLatLon(final String geohash) {
8485
Assert.notNull(geohash, "geohash must not be null");
8586

8687
var point = Geohash.toPoint(geohash);
87-
return String.format("%f,%f", point.getLat(), point.getLon());
88+
return String.format(Locale.ROOT, "%f,%f", point.getLat(), point.getLon());
8889
}
8990

9091
/**

0 commit comments

Comments
 (0)