xref: /f-stack/app/redis-5.0.5/src/geo.h (revision 572c4311)
1 #ifndef __GEO_H__
2 #define __GEO_H__
3 
4 #include "server.h"
5 
6 /* Structures used inside geo.c in order to represent points and array of
7  * points on the earth. */
8 typedef struct geoPoint {
9     double longitude;
10     double latitude;
11     double dist;
12     double score;
13     char *member;
14 } geoPoint;
15 
16 typedef struct geoArray {
17     struct geoPoint *array;
18     size_t buckets;
19     size_t used;
20 } geoArray;
21 
22 #endif
23