C# Class Rubber.Common.GeoHashUtils

Shamelessly stolen from Lucene.Net.Spatial.GeoHash :D
Mostrar archivo Open project: stephenpope/Rubber

Public Methods

Method Description
Decode ( String geohash ) : double[]
DecodeExactly ( String geohash ) : double[]
Encode ( double latitude, double longitude ) : String
GetPrecision ( double x, double precision ) : double

Private Methods

Method Description
GeoHashUtils ( ) : System

Method Details

Decode() public static method

public static Decode ( String geohash ) : double[]
geohash String
return double[]

DecodeExactly() public static method

public static DecodeExactly ( String geohash ) : double[]
geohash String
return double[]

Encode() public static method

public static Encode ( double latitude, double longitude ) : String
latitude double
longitude double
return String

GetPrecision() public static method

public static GetPrecision ( double x, double precision ) : double
x double
precision double
return double