MCPcopy Create free account
hub / github.com/Snapchat/KeyDB / geohashEncodeType

Function geohashEncodeType

src/geohash.c:153–157  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

151}
152
153int geohashEncodeType(double longitude, double latitude, uint8_t step, GeoHashBits *hash) {
154 GeoHashRange r[2] = {{0}};
155 geohashGetCoordRange(&r[0], &r[1]);
156 return geohashEncode(&r[0], &r[1], longitude, latitude, step, hash);
157}
158
159int geohashEncodeWGS84(double longitude, double latitude, uint8_t step,
160 GeoHashBits *hash) {

Callers 1

geohashEncodeWGS84Function · 0.85

Calls 2

geohashGetCoordRangeFunction · 0.85
geohashEncodeFunction · 0.85

Tested by

no test coverage detected