fix geohash conversion

Original Pull Request #3002
Closes #3001

(cherry picked from commit 7f5bfffc34)
This commit is contained in:
Peter-Josef Meisch
2024-11-08 18:55:15 +01:00
parent 20a6140fe9
commit d0020be57d

View File

@@ -17,6 +17,7 @@ package org.springframework.data.elasticsearch.utils.geohash;
import java.util.ArrayList;
import java.util.Collection;
import java.util.Locale;
import org.springframework.util.Assert;
@@ -84,7 +85,7 @@ public class 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());
}
/**