mad-location-manager-lib 1.0
Library for fusing GPS and ENU accelerometer data
Loading...
Searching...
No Matches
Functions
geohash.cpp File Reference
#include "geohash.h"
#include <assert.h>
#include <cstdint>

Functions

static uint64_t interleave_bits (uint64_t x, uint64_t y)
 
uint64_t geohash_encode (double lat, double lon, int prec)
 
int geohash_cmp (double lon1, double lat1, double lon2, double lat2, int precision)
 

Function Documentation

◆ geohash_cmp()

int geohash_cmp ( double  lon1,
double  lat1,
double  lon2,
double  lat2,
int  precision 
)

◆ geohash_encode()

uint64_t geohash_encode ( double  lat,
double  lon,
int  prec 
)

◆ interleave_bits()

uint64_t interleave_bits ( uint64_t  x,
uint64_t  y 
)
static