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);
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
const mpreal ldexp(const mpreal &v, mp_exp_t exp)
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
Conversions for geohashes.
Namespace for GeographicLib.
static int GeohashLength(real latres, real lonres)
static int DecimalPrecision(int len)
EIGEN_DEVICE_FUNC const FloorReturnType floor() const
Header for GeographicLib::Constants class.
static const char *const lcdigits_
static Math::real LatitudeResolution(int len)