fix geohash conversion
Original Pull Request #3002
Closes #3001
(cherry picked from commit 7f5bfffc34)
This commit is contained in:
@@ -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());
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user