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 Math::real LongitudeResolution(int len)
#define GEOGRAPHICLIB_EXPORT
EIGEN_DEVICE_FUNC const LogReturnType log() const
static int GeohashLength(real res)
static const char *const ucdigits_
cout<< "Here is the matrix m:"<< endl<< m<< endl;Matrix< ptrdiff_t, 3, 1 > res
EIGEN_DEVICE_FUNC const FloorReturnType floor() const
Conversions for geohashes.
Namespace for GeographicLib.
static int GeohashLength(real latres, real lonres)
static int DecimalPrecision(int len)
Header for GeographicLib::Constants class.
static const char *const lcdigits_
size_t len(handle h)
Get the length of a Python object.
static Math::real LatitudeResolution(int len)