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

Function decodeGeohash

src/geo.cpp:86–89  ·  view source on GitHub ↗

==================================================================== * Helpers * ==================================================================== */

Source from the content-addressed store, hash-verified

84 * Helpers
85 * ==================================================================== */
86int decodeGeohash(double bits, double *xy) {
87 GeoHashBits hash = { (uint64_t)bits, GEO_STEP_MAX };
88 return geohashDecodeToLongLatWGS84(hash, xy);
89}
90
91/* Input Argument Helper */
92/* Take a pointer to the latitude arg then use the next arg for longitude.

Callers 5

longLatFromMemberFunction · 0.85
geoAppendIfWithinShapeFunction · 0.85
geohashCommandFunction · 0.85
geoposCommandFunction · 0.85
geodistCommandFunction · 0.85

Calls 1

Tested by

no test coverage detected