Home
last modified time | relevance | path

Searched refs:distance (Results 1 – 3 of 3) sorted by relevance

/redis-3.2.3/deps/geohash-int/
H A Dgeohash_helper.c98 double distance = radius_meters / EARTH_RADIUS_IN_METERS; in geohashBoundingBox() local
99 double min_latitude = latr - distance; in geohashBoundingBox()
100 double max_latitude = latr + distance; in geohashBoundingBox()
104 double difference_longitude = asin(sin(distance) / cos(latr)); in geohashBoundingBox()
224 double *distance) { in geohashGetDistanceIfInRadius() argument
225 *distance = geohashGetDistance(x1, y1, x2, y2); in geohashGetDistanceIfInRadius()
226 if (*distance > radius) return 0; in geohashGetDistanceIfInRadius()
232 double *distance) { in geohashGetDistanceIfInRadiusWGS84() argument
233 return geohashGetDistanceIfInRadius(x1, y1, x2, y2, radius, distance); in geohashGetDistanceIfInRadiusWGS84()
H A Dgeohash_helper.h66 double *distance);
69 double *distance);
/redis-3.2.3/src/
H A Dgeo.c154 double distance; in extractDistanceOrReply() local
155 if (getDoubleFromObjectOrReply(c, argv[0], &distance, in extractDistanceOrReply()
160 if (distance < 0) { in extractDistanceOrReply()
171 return distance * to_meters; in extractDistanceOrReply()
192 double distance, xy[2]; in geoAppendIfWithinRadius() local
198 radius, &distance)) in geoAppendIfWithinRadius()
207 gp->dist = distance; in geoAppendIfWithinRadius()