Constructor and Description |
---|
LinearKeyAlgo(int latUnits,
int lonUnits) |
Modifier and Type | Method and Description |
---|---|
void |
decode(long linearKey,
GHPoint latLon)
This method returns latitude and longitude via latLon - calculated from specified linearKey
|
long |
encode(double lat,
double lon)
Take latitude and longitude as input.
|
long |
encode(GHPoint coord) |
double |
getLatDelta() |
double |
getLonDelta() |
LinearKeyAlgo |
setBounds(BBox bounds) |
LinearKeyAlgo |
setBounds(double minLonInit,
double maxLonInit,
double minLatInit,
double maxLatInit)
Sets the bounds of the underlying key algorithm.
|
protected void |
setWorldBounds() |
public LinearKeyAlgo setBounds(double minLonInit, double maxLonInit, double minLatInit, double maxLatInit)
KeyAlgo
public LinearKeyAlgo setBounds(BBox bounds)
protected void setWorldBounds()
public final long encode(double lat, double lon)
public final void decode(long linearKey, GHPoint latLon)
public double getLatDelta()
public double getLonDelta()
Copyright © 2012–2020. All rights reserved.