Skip to content

Commit

Permalink
Fix the order how long/lat in GEOADD are passed to redis #134
Browse files Browse the repository at this point in the history
  • Loading branch information
mp911de committed Sep 10, 2015
1 parent 4026a3c commit 65b5290
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1714,7 +1714,7 @@ public Command<K, V, String> clusterReset(boolean hard) {
}

public Command<K, V, Long> geoadd(K key, double longitude, double latitude, V member) {
CommandArgs<K, V> args = new CommandArgs<K, V>(codec).addKey(key).add(latitude).add(longitude).addValue(member);
CommandArgs<K, V> args = new CommandArgs<K, V>(codec).addKey(key).add(longitude).add(latitude).addValue(member);
return createCommand(GEOADD, new IntegerOutput<K, V>(codec), args);
}

Expand Down
3 changes: 2 additions & 1 deletion src/test/java/com/lambdaworks/redis/GeoCommandTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,8 @@ public void geoaddMultiWrongArgument() throws Exception {
}

protected void prepareGeo() {
redis.geoadd(key, 8.6638775, 49.5282537, "Weinheim", 8.3796281, 48.9978127, "EFS9", 8.665351, 49.553302, "Bahn");
redis.geoadd(key, 8.6638775, 49.5282537, "Weinheim");
redis.geoadd(key, 8.3796281, 48.9978127, "EFS9", 8.665351, 49.553302, "Bahn");
}

@Test
Expand Down

0 comments on commit 65b5290

Please sign in to comment.