2014-05-12 14:38:17 -04:00
|
|
|
#ifndef __GEO_H__
|
|
|
|
#define __GEO_H__
|
|
|
|
|
|
|
|
#include "redis.h"
|
|
|
|
|
|
|
|
void geoEncodeCommand(redisClient *c);
|
|
|
|
void geoDecodeCommand(redisClient *c);
|
|
|
|
void geoRadiusByMemberCommand(redisClient *c);
|
|
|
|
void geoRadiusCommand(redisClient *c);
|
|
|
|
void geoAddCommand(redisClient *c);
|
|
|
|
|
2015-06-22 11:53:14 +02:00
|
|
|
struct geoPoint {
|
|
|
|
double latitude;
|
|
|
|
double longitude;
|
|
|
|
double dist;
|
|
|
|
char *set;
|
|
|
|
char *member;
|
|
|
|
void *userdata;
|
|
|
|
};
|
|
|
|
|
2014-05-12 14:38:17 -04:00
|
|
|
#endif
|