mad-location-manager-lib 1.0
Library for fusing GPS and ENU accelerometer data
Loading...
Searching...
No Matches
geohash.h
Go to the documentation of this file.
1#ifndef GEOHASH_H
2#define GEOHASH_H
3
4#include <cstdint>
5
6#define GEOHASH_MAX_PRECISION 12
7
8uint64_t geohash_encode(double lat, double lon, int prec);
9
10int geohash_cmp(double lon1,
11 double lat1,
12 double lon2,
13 double lat2,
14 int precision);
15
16#endif // GEOHASH_H
int geohash_cmp(double lon1, double lat1, double lon2, double lat2, int precision)
Definition geohash.cpp:26
uint64_t geohash_encode(double lat, double lon, int prec)
Definition geohash.cpp:8