Home
last modified time | relevance | path

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

/f-stack/app/redis-5.0.5/src/
H A Dgeohash_helper.c52 const double EARTH_RADIUS_IN_METERS = 6372797.560856; variable
107 bounds[0] = longitude - rad_deg(radius_meters/EARTH_RADIUS_IN_METERS/cos(deg_rad(latitude))); in geohashBoundingBox()
108 bounds[2] = longitude + rad_deg(radius_meters/EARTH_RADIUS_IN_METERS/cos(deg_rad(latitude))); in geohashBoundingBox()
109 bounds[1] = latitude - rad_deg(radius_meters/EARTH_RADIUS_IN_METERS); in geohashBoundingBox()
110 bounds[3] = latitude + rad_deg(radius_meters/EARTH_RADIUS_IN_METERS); in geohashBoundingBox()
219 return 2.0 * EARTH_RADIUS_IN_METERS * in geohashGetDistance()