Go to the documentation of this file.
10 #if !defined(GEOGRAPHICLIB_GEOHASH_HPP)
11 #define GEOGRAPHICLIB_GEOHASH_HPP 1
17 # pragma warning (push)
18 # pragma warning (disable: 4251)
43 static const int maxlen_ = 18;
44 static const unsigned long long mask_ = 1ULL << 45;
88 static void Reverse(
const std::string& geohash,
real&
lat,
real&
lon,
89 int&
len,
bool centerp =
true);
102 return ldexp(
real(180), -(5 *
len / 2));
116 return ldexp(
real(360), -(5 *
len - 5 *
len / 2));
131 if (LongitudeResolution(
len) <=
res)
147 latres =
abs(latres);
148 lonres =
abs(lonres);
150 if (LatitudeResolution(
len) <= latres &&
151 LongitudeResolution(
len) <= lonres)
176 #if defined(_MSC_VER)
177 # pragma warning (pop)
180 #endif // GEOGRAPHICLIB_GEOHASH_HPP
static int GeohashLength(real latres, real lonres)
static Math::real LongitudeResolution(int len)
Namespace for GeographicLib.
Conversions for geohashes.
static const char *const lcdigits_
const EIGEN_DEVICE_FUNC LogReturnType log() const
#define GEOGRAPHICLIB_EXPORT
cout<< "Here is the matrix m:"<< endl<< m<< endl;Matrix< ptrdiff_t, 3, 1 > res
static int DecimalPrecision(int len)
static int GeohashLength(real res)
static const char *const ucdigits_
static Math::real LatitudeResolution(int len)
Header for GeographicLib::Constants class.
size_t len(handle h)
Get the length of a Python object.
const EIGEN_DEVICE_FUNC FloorReturnType floor() const
gtsam
Author(s):
autogenerated on Sun Dec 22 2024 04:11:37