Home
last modified time | relevance | path

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

/redis-3.2.3/deps/geohash-int/
H A Dgeohash_helper.c93 lonr = deg_rad(longitude); in geohashBoundingBox()
127 geohashBoundingBox(longitude, latitude, radius_meters, bounds); in geohashGetAreasByRadius()
136 geohashEncode(&long_range,&lat_range,longitude,latitude,steps,&hash); in geohashGetAreasByRadius()
154 if (geohashGetDistance(longitude,latitude,longitude,north.latitude.max) in geohashGetAreasByRadius()
156 if (geohashGetDistance(longitude,latitude,longitude,south.latitude.min) in geohashGetAreasByRadius()
158 if (geohashGetDistance(longitude,latitude,east.longitude.max,latitude) in geohashGetAreasByRadius()
160 if (geohashGetDistance(longitude,latitude,west.longitude.min,latitude) in geohashGetAreasByRadius()
166 geohashEncode(&long_range,&lat_range,longitude,latitude,steps,&hash); in geohashGetAreasByRadius()
182 if (area.longitude.min < min_lon) { in geohashGetAreasByRadius()
187 if (area.longitude.max > max_lon) { in geohashGetAreasByRadius()
[all …]
H A Dgeohash.c122 double longitude, double latitude, uint8_t step, in geohashEncode() argument
130 if (longitude > 180 || longitude < -180 || in geohashEncode()
137 longitude < long_range->min || longitude > long_range->max) { in geohashEncode()
144 (longitude - long_range->min) / (long_range->max - long_range->min); in geohashEncode()
153 int geohashEncodeType(double longitude, double latitude, uint8_t step, GeoHashBits *hash) { in geohashEncodeType() argument
156 return geohashEncode(&r[0], &r[1], longitude, latitude, step, hash); in geohashEncodeType()
159 int geohashEncodeWGS84(double longitude, double latitude, uint8_t step, in geohashEncodeWGS84() argument
161 return geohashEncodeType(longitude, latitude, step, hash); in geohashEncodeWGS84()
188 area->longitude.min = in geohashDecode()
190 area->longitude.max = in geohashDecode()
[all …]
H A Dgeohash_helper.h53 int geohashBoundingBox(double longitude, double latitude, double radius_meters,
55 GeoHashRadius geohashGetAreasByRadius(double longitude,
57 GeoHashRadius geohashGetAreasByRadiusWGS84(double longitude, double latitude,
59 GeoHashRadius geohashGetAreasByRadiusMercator(double longitude, double latitude,
H A Dgeohash.h78 GeoHashRange longitude; member
99 double longitude, double latitude, uint8_t step,
101 int geohashEncodeType(double longitude, double latitude,
103 int geohashEncodeWGS84(double longitude, double latitude, uint8_t step,
/redis-3.2.3/src/
H A Dgeo.h9 double longitude; member
H A Dgeo.c205 gp->longitude = xy[0]; in geoAppendIfWithinRadius()
601 addReplyHumanLongDouble(c, gp->longitude); in georadiusGeneric()