Skip to content

Commit fa0a51d

Browse files
committed
Merge pull request #31 from janoe/master
Related to issue #24, it is necesary to set Locale.ENGLISH
2 parents d2ea064 + 11dfd1d commit fa0a51d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/java/se/walkercrou/places/GooglePlaces.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -214,7 +214,7 @@ public List<Place> getNearbyPlaces(double lat, double lng, double radius, Param.
214214
@Override
215215
public List<Place> getNearbyPlacesRankedByDistance(double lat, double lng, int limit, Param... params) {
216216
try {
217-
String uri = buildUrl(METHOD_NEARBY_SEARCH, String.format("key=%s&location=%f,%f&rankby=distance",
217+
String uri = buildUrl(METHOD_NEARBY_SEARCH, String.format(Locale.ENGLISH, "key=%s&location=%f,%f&rankby=distance",
218218
apiKey, lat, lng), params);
219219
return getPlaces(uri, METHOD_NEARBY_SEARCH, limit);
220220
} catch (Exception e) {

0 commit comments

Comments
 (0)