Home
last modified time | relevance | path

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

/f-stack/app/redis-5.0.5/src/
H A Dgeohash_helper.c109 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()
126 geohashBoundingBox(longitude, latitude, radius_meters, bounds); in geohashGetAreasByRadius()
132 steps = geohashEstimateStepsByRadius(radius_meters,latitude); in geohashGetAreasByRadius()
153 if (geohashGetDistance(longitude,latitude,longitude,north.latitude.max) in geohashGetAreasByRadius()
155 if (geohashGetDistance(longitude,latitude,longitude,south.latitude.min) in geohashGetAreasByRadius()
157 if (geohashGetDistance(longitude,latitude,east.longitude.max,latitude) in geohashGetAreasByRadius()
159 if (geohashGetDistance(longitude,latitude,west.longitude.min,latitude) in geohashGetAreasByRadius()
172 if (area.latitude.min < min_lat) { in geohashGetAreasByRadius()
177 if (area.latitude.max > max_lat) { in geohashGetAreasByRadius()
[all …]
H A Dgeohash.c122 double longitude, double latitude, uint8_t step, in geohashEncode() argument
131 latitude > GEO_LAT_MAX || latitude < GEO_LAT_MIN) return 0; in geohashEncode()
136 if (latitude < lat_range->min || latitude > lat_range->max || in geohashEncode()
142 (latitude - lat_range->min) / (lat_range->max - lat_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()
184 area->latitude.min = in geohashDecode()
186 area->latitude.max = in geohashDecode()
[all …]
H A Dgeohash_helper.h52 int geohashBoundingBox(double longitude, double latitude, double radius_meters,
55 double latitude, double radius_meters);
56 GeoHashRadius geohashGetAreasByRadiusWGS84(double longitude, double latitude,
58 GeoHashRadius geohashGetAreasByRadiusMercator(double longitude, double latitude,
H A Dgeohash.h79 GeoHashRange latitude; 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,
H A Dgeo.h10 double latitude; member
H A Dgeo.c206 gp->latitude = xy[1]; in geoAppendIfWithinRadius()
360 D("area.latitude.min: %f\n", myarea.latitude.min); in membersOfAllNeighbors()
361 D("area.latitude.max: %f\n", myarea.latitude.max); in membersOfAllNeighbors()
630 addReplyHumanLongDouble(c, gp->latitude); in georadiusGeneric()
/f-stack/app/nginx-1.16.1/src/stream/
H A Dngx_stream_geoip_module.c199 offsetof(GeoIPRecord, latitude), 0, 0 },
/f-stack/app/nginx-1.16.1/src/http/modules/
H A Dngx_http_geoip_module.c221 offsetof(GeoIPRecord, latitude), 0, 0 },