C# Class SensorbergSDK.NGeoHash.GeoHash

Exibir arquivo Open project: sensorberg-dev/windows10-sdk

Public Properties

Property Type Description
Base32CodesDict int>.Dictionary

Public Methods

Method Description
Bboxes ( double minLat, double minLon, double maxLat, double maxLon, int numberOfChars = 9 ) : string[]
BboxesInt ( double minLat, double minLon, double maxLat, double maxLon, int bitDepth = 52 ) : long[]
Decode ( string hashString ) : GeohashDecodeResult
DecodeBbox ( string hashString ) : double[]
DecodeBboxInt ( long hashInt, int bitDepth = 52 ) : double[]
DecodeInt ( long hashInt, int bitDepth = 52 ) : GeohashDecodeResult
Encode ( double latitude, double longitude, int numberOfChars = 9 ) : string
EncodeInt ( double latitude, double longitude, int bitDepth = 52 ) : long
EncodeNeighbor ( int hashstringLength, int neighborLatDir, int neighborLonDir, GeohashDecodeResult coords ) : string
EncodeNeighborInt ( int neighborLatDir, int neighborLonDir, GeohashDecodeResult coords, int bitDepth ) : long
Neighbor ( string hashString, int direction ) : string
NeighborInt ( long hashInt, int direction, int bitDepth = 52 ) : long
Neighbors ( string hashString ) : string[]
NeighborsInt ( long hashInt, int bitDepth = 52 ) : long[]
get_bit ( long bits, int position ) : long

Private Methods

Method Description
GeoHash ( ) : System

Method Details

Bboxes() public static method

public static Bboxes ( double minLat, double minLon, double maxLat, double maxLon, int numberOfChars = 9 ) : string[]
minLat double
minLon double
maxLat double
maxLon double
numberOfChars int
return string[]

BboxesInt() public static method

public static BboxesInt ( double minLat, double minLon, double maxLat, double maxLon, int bitDepth = 52 ) : long[]
minLat double
minLon double
maxLat double
maxLon double
bitDepth int
return long[]

Decode() public static method

public static Decode ( string hashString ) : GeohashDecodeResult
hashString string
return GeohashDecodeResult

DecodeBbox() public static method

public static DecodeBbox ( string hashString ) : double[]
hashString string
return double[]

DecodeBboxInt() public static method

public static DecodeBboxInt ( long hashInt, int bitDepth = 52 ) : double[]
hashInt long
bitDepth int
return double[]

DecodeInt() public static method

public static DecodeInt ( long hashInt, int bitDepth = 52 ) : GeohashDecodeResult
hashInt long
bitDepth int
return GeohashDecodeResult

Encode() public static method

public static Encode ( double latitude, double longitude, int numberOfChars = 9 ) : string
latitude double
longitude double
numberOfChars int
return string

EncodeInt() public static method

public static EncodeInt ( double latitude, double longitude, int bitDepth = 52 ) : long
latitude double
longitude double
bitDepth int
return long

EncodeNeighbor() public static method

public static EncodeNeighbor ( int hashstringLength, int neighborLatDir, int neighborLonDir, GeohashDecodeResult coords ) : string
hashstringLength int
neighborLatDir int
neighborLonDir int
coords GeohashDecodeResult
return string

EncodeNeighborInt() public static method

public static EncodeNeighborInt ( int neighborLatDir, int neighborLonDir, GeohashDecodeResult coords, int bitDepth ) : long
neighborLatDir int
neighborLonDir int
coords GeohashDecodeResult
bitDepth int
return long

Neighbor() public static method

public static Neighbor ( string hashString, int direction ) : string
hashString string
direction int
return string

NeighborInt() public static method

public static NeighborInt ( long hashInt, int direction, int bitDepth = 52 ) : long
hashInt long
direction int
bitDepth int
return long

Neighbors() public static method

public static Neighbors ( string hashString ) : string[]
hashString string
return string[]

NeighborsInt() public static method

public static NeighborsInt ( long hashInt, int bitDepth = 52 ) : long[]
hashInt long
bitDepth int
return long[]

get_bit() public static method

public static get_bit ( long bits, int position ) : long
bits long
position int
return long

Property Details

Base32CodesDict public_oe static_oe property

public static Dictionary Base32CodesDict
return int>.Dictionary