public final class GeoPoint extends Object
Constructor and Description |
---|
GeoPoint() |
GeoPoint(double lat,
double lon) |
GeoPoint(String value)
Create a new Geopointform a string.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object o) |
static GeoPoint |
fromGeohash(long geohashLong) |
static GeoPoint |
fromGeohash(String geohash) |
static GeoPoint |
fromIndexLong(long indexLong) |
String |
geohash() |
String |
getGeohash() |
double |
getLat() |
double |
getLon() |
int |
hashCode() |
double |
lat() |
double |
lon() |
static GeoPoint |
parseFromLatLon(String latLon) |
GeoPoint |
reset(double lat,
double lon) |
GeoPoint |
resetFromGeoHash(long geohashLong) |
GeoPoint |
resetFromGeoHash(String geohash) |
GeoPoint |
resetFromIndexHash(long hash) |
GeoPoint |
resetFromString(String value) |
GeoPoint |
resetLat(double lat) |
GeoPoint |
resetLon(double lon) |
String |
toString() |
public GeoPoint()
public GeoPoint(String value)
value
- String to create the point frompublic GeoPoint(double lat, double lon)
public GeoPoint reset(double lat, double lon)
public GeoPoint resetLat(double lat)
public GeoPoint resetLon(double lon)
public GeoPoint resetFromIndexHash(long hash)
public GeoPoint resetFromGeoHash(long geohashLong)
public final double lat()
public final double getLat()
public final double lon()
public final double getLon()
public final String geohash()
public final String getGeohash()
public static GeoPoint fromGeohash(long geohashLong)
public static GeoPoint fromIndexLong(long indexLong)
Copyright © 2009–2016. All rights reserved.