Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit c8799e8

Browse filesBrowse files
kennywakelandappkins
authored andcommitted
Set the geospatial unit for meters to "m" (#43)
* Set the geospatial unit for meters to "m" * Set the geospatial unit for meters to "m"
1 parent 6325b23 commit c8799e8
Copy full SHA for c8799e8

File tree

2 files changed

+2
-2
lines changed
Filter options

2 files changed

+2
-2
lines changed

‎includes/cpp_redis/core/client.hpp

Copy file name to clipboardExpand all lines: includes/cpp_redis/core/client.hpp
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -853,7 +853,7 @@ namespace cpp_redis {
853853
const reply_callback_t &reply_callback);
854854

855855
std::future<reply> geodist(const std::string &key, const std::string &member_1, const std::string &member_2,
856-
const std::string &unit = "m_cv_mutex");
856+
const std::string &unit = "m");
857857

858858
client &georadius(const std::string &key, double longitude, double latitude, double radius, geo_unit unit,
859859
bool with_coord, bool with_dist, bool with_hash, bool asc_order,

‎sources/core/client.cpp

Copy file name to clipboardExpand all lines: sources/core/client.cpp
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -499,7 +499,7 @@ namespace cpp_redis {
499499
client::geo_unit_to_string(geo_unit unit) const {
500500
switch (unit) {
501501
case geo_unit::m:
502-
return "m_cv_mutex";
502+
return "m";
503503
case geo_unit::km:
504504
return "km";
505505
case geo_unit::ft:

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.