MCPcopy Create free account
hub / github.com/apache/kvrocks / GeohashEncodeType

Function GeohashEncodeType

src/types/geohash.cc:169–173  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

167}
168
169int GeohashEncodeType(double longitude, double latitude, uint8_t step, GeoHashBits *hash) {
170 GeoHashRange r[2] = {{0}};
171 GeohashGetCoordRange(&r[0], &r[1]);
172 return GeohashEncode(&r[0], &r[1], longitude, latitude, step, hash);
173}
174
175int GeohashEncodeWGS84(double longitude, double latitude, uint8_t step, GeoHashBits *hash) {
176 return GeohashEncodeType(longitude, latitude, step, hash);

Callers 1

GeohashEncodeWGS84Function · 0.85

Calls 2

GeohashGetCoordRangeFunction · 0.85
GeohashEncodeFunction · 0.85

Tested by

no test coverage detected