| 167 | } |
| 168 | |
| 169 | int 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 | |
| 175 | int GeohashEncodeWGS84(double longitude, double latitude, uint8_t step, GeoHashBits *hash) { |
| 176 | return GeohashEncodeType(longitude, latitude, step, hash); |
no test coverage detected