Lines Matching refs:xy
85 int decodeGeohash(double bits, double *xy) { in decodeGeohash() argument
87 return geohashDecodeToLongLatWGS84(hash, xy); in decodeGeohash()
93 int extractLongLatOrReply(client *c, robj **argv, double *xy) { in extractLongLatOrReply() argument
96 if (getDoubleFromObjectOrReply(c, argv[i], xy + i, NULL) != in extractLongLatOrReply()
101 if (xy[0] < GEO_LONG_MIN || xy[0] > GEO_LONG_MAX || in extractLongLatOrReply()
102 xy[1] < GEO_LAT_MIN || xy[1] > GEO_LAT_MAX) { in extractLongLatOrReply()
104 "-ERR invalid longitude,latitude pair %f,%f\r\n",xy[0],xy[1])); in extractLongLatOrReply()
113 int longLatFromMember(robj *zobj, robj *member, double *xy) { in longLatFromMember() argument
117 if (!decodeGeohash(score, xy)) return C_ERR; in longLatFromMember()
192 double distance, xy[2]; in geoAppendIfWithinRadius() local
194 if (!decodeGeohash(score,xy)) return C_ERR; /* Can't decode. */ in geoAppendIfWithinRadius()
197 if (!geohashGetDistanceIfInRadiusWGS84(lon,lat, xy[0], xy[1], in geoAppendIfWithinRadius()
205 gp->longitude = xy[0]; in geoAppendIfWithinRadius()
206 gp->latitude = xy[1]; in geoAppendIfWithinRadius()
405 double xy[2]; in geoaddCommand() local
407 if (extractLongLatOrReply(c, (c->argv+2)+(i*3),xy) == C_ERR) { in geoaddCommand()
416 geohashEncodeWGS84(xy[0], xy[1], GEO_STEP_MAX, &hash); in geoaddCommand()
454 double xy[2] = { 0 }; in georadiusGeneric() local
457 if (extractLongLatOrReply(c, c->argv + 2, xy) == C_ERR) in georadiusGeneric()
462 if (longLatFromMember(zobj, member, xy) == C_ERR) { in georadiusGeneric()
533 geohashGetAreasByRadiusWGS84(xy[0], xy[1], radius_meters); in georadiusGeneric()
537 membersOfAllNeighbors(zobj, georadius, xy[0], xy[1], radius_meters, ga); in georadiusGeneric()
688 double xy[2]; in geohashCommand() local
689 if (!decodeGeohash(score,xy)) { in geohashCommand()
701 geohashEncode(&r[0],&r[1],xy[0],xy[1],26,&hash); in geohashCommand()
736 double xy[2]; in geoposCommand() local
737 if (!decodeGeohash(score,xy)) { in geoposCommand()
742 addReplyHumanLongDouble(c,xy[0]); in geoposCommand()
743 addReplyHumanLongDouble(c,xy[1]); in geoposCommand()