Table of Contents

Class GeohashHelper

Namespace
ThinkGeo.Core
Assembly
ThinkGeo.Core.dll
public static class GeohashHelper
Inheritance
GeohashHelper
Inherited Members

Methods

ConvertToGeohash(double, double, int)

public static string ConvertToGeohash(double latitude, double longitude, int precision = 12)

Parameters

latitude double
longitude double
precision int

Returns

string

ConvertToGeohash(PointShape, int)

public static string ConvertToGeohash(PointShape pointShapeInDecimalDegree, int precision = 12)

Parameters

pointShapeInDecimalDegree PointShape
precision int

Returns

string

ConvertToGeohash(Vertex, int)

public static string ConvertToGeohash(Vertex vertexInDecimalDegree, int precision = 12)

Parameters

vertexInDecimalDegree Vertex
precision int

Returns

string

ConvertToPointShape(string)

public static PointShape ConvertToPointShape(string geohash)

Parameters

geohash string

Returns

PointShape

GetAdjacentGeohash(double, double, GeohashAjacentDirection)

public static string GetAdjacentGeohash(double latitude, double longitude, GeohashAjacentDirection direction)

Parameters

latitude double
longitude double
direction GeohashAjacentDirection

Returns

string

GetAdjacentGeohash(double, double, GeohashAjacentDirection, int)

public static string GetAdjacentGeohash(double latitude, double longitude, GeohashAjacentDirection direction, int precision)

Parameters

latitude double
longitude double
direction GeohashAjacentDirection
precision int

Returns

string

GetAdjacentGeohash(string, GeohashAjacentDirection)

public static string GetAdjacentGeohash(string geohash, GeohashAjacentDirection direction)

Parameters

geohash string
direction GeohashAjacentDirection

Returns

string

GetAdjacentGeohash(PointShape, GeohashAjacentDirection)

public static string GetAdjacentGeohash(PointShape pointShapeInDecimalDegree, GeohashAjacentDirection direction)

Parameters

pointShapeInDecimalDegree PointShape
direction GeohashAjacentDirection

Returns

string

GetAdjacentGeohash(PointShape, GeohashAjacentDirection, int)

public static string GetAdjacentGeohash(PointShape pointShapeInDecimalDegree, GeohashAjacentDirection direction, int precision)

Parameters

pointShapeInDecimalDegree PointShape
direction GeohashAjacentDirection
precision int

Returns

string

GetAdjacentGeohash(Vertex, GeohashAjacentDirection)

public static string GetAdjacentGeohash(Vertex vertexInDecimalDegree, GeohashAjacentDirection direction)

Parameters

vertexInDecimalDegree Vertex
direction GeohashAjacentDirection

Returns

string

GetAdjacentGeohash(Vertex, GeohashAjacentDirection, int)

public static string GetAdjacentGeohash(Vertex vertexInDecimalDegree, GeohashAjacentDirection direction, int precision)

Parameters

vertexInDecimalDegree Vertex
direction GeohashAjacentDirection
precision int

Returns

string

GetAdjacentGeohashes(double, double)

public static Collection<string> GetAdjacentGeohashes(double latitude, double longitude)

Parameters

latitude double
longitude double

Returns

Collection<string>

GetAdjacentGeohashes(double, double, int)

public static Collection<string> GetAdjacentGeohashes(double latitude, double longitude, int precision)

Parameters

latitude double
longitude double
precision int

Returns

Collection<string>

GetAdjacentGeohashes(string)

public static Collection<string> GetAdjacentGeohashes(string geohash)

Parameters

geohash string

Returns

Collection<string>

GetAdjacentGeohashes(PointShape)

public static Collection<string> GetAdjacentGeohashes(PointShape pointShapeInDecimalDegree)

Parameters

pointShapeInDecimalDegree PointShape

Returns

Collection<string>

GetAdjacentGeohashes(PointShape, int)

public static Collection<string> GetAdjacentGeohashes(PointShape pointShapeInDecimalDegree, int precision)

Parameters

pointShapeInDecimalDegree PointShape
precision int

Returns

Collection<string>

GetAdjacentGeohashes(Vertex)

public static Collection<string> GetAdjacentGeohashes(Vertex vertexInDecimalDegree)

Parameters

vertexInDecimalDegree Vertex

Returns

Collection<string>

GetAdjacentGeohashes(Vertex, int)

public static Collection<string> GetAdjacentGeohashes(Vertex vertexInDecimalDegree, int precision)

Parameters

vertexInDecimalDegree Vertex
precision int

Returns

Collection<string>