// CodeGear C++Builder
// Copyright (c) 1995, 2025 by Embarcadero Technologies, Inc.
// All rights reserved

// (DO NOT EDIT: machine generated header) 'uecGeoHash.pas' rev: 37.00 (Windows)

#ifndef uecGeoHashHPP
#define uecGeoHashHPP

#pragma delphiheader begin
#pragma option push
#if defined(__BORLANDC__) && !defined(__clang__)
#pragma option -w-      // All warnings off
#pragma option -Vx      // Zero-length empty class member 
#endif
#pragma pack(push,8)
#include <System.hpp>
#include <SysInit.hpp>
#include <Winapi.Windows.hpp>
#include <System.SysUtils.hpp>
#include <System.Classes.hpp>
#include <UECMapUtil.hpp>
#include <System.StrUtils.hpp>
#include <System.Generics.Collections.hpp>
#include <System.Generics.Defaults.hpp>
#include <System.Types.hpp>
#include <System.UITypes.hpp>
#include <System.Math.hpp>

//-- user supplied -----------------------------------------------------------

namespace Uecgeohash
{
//-- forward type declarations -----------------------------------------------
struct TCardinalGeoHash;
//-- type declarations -------------------------------------------------------
struct DECLSPEC_DRECORD TCardinalGeoHash
{
public:
	System::UnicodeString North;
	System::UnicodeString NorthEast;
	System::UnicodeString East;
	System::UnicodeString SouthEast;
	System::UnicodeString South;
	System::UnicodeString SouthWest;
	System::UnicodeString West;
	System::UnicodeString NorthWest;
};


enum DECLSPEC_DENUM TGeoDirection : unsigned char { North, East, South, West };

//-- var, const, procedure ---------------------------------------------------
extern DELPHI_PACKAGE void __fastcall decodeGeoHash(const System::UnicodeString geohash, double &latitude, double &longitude);
extern DELPHI_PACKAGE System::UnicodeString __fastcall encodeGeoHash(const double latitude, const double longitude, const int precision = 0xc);
extern DELPHI_PACKAGE TCardinalGeoHash __fastcall CardinalGeoHash(const System::UnicodeString geohash);
}	/* namespace Uecgeohash */
#if !defined(DELPHIHEADER_NO_IMPLICIT_NAMESPACE_USE) && !defined(NO_USING_NAMESPACE_UECGEOHASH)
using namespace Uecgeohash;
#endif
#pragma pack(pop)
#pragma option pop

#pragma delphiheader end.
//-- end unit ----------------------------------------------------------------
#endif	// uecGeoHashHPP
