|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.stackmob.sdk.api.StackMobGeoPoint
public class StackMobGeoPoint
Represents a longitude/latitude pair that can be stored and queried against in StackMob
| Constructor Summary | |
|---|---|
StackMobGeoPoint(Double lon,
Double lat)
create a geopoint in terms of longitude and latitude radian |
|
| Method Summary | |
|---|---|
List<String> |
asList()
a list representation of this geopoint |
Double |
getLatitude()
the latitude of this geopoint |
Double |
getLongitude()
the longitude of this geopoint |
Double |
getQueryDistanceRadians()
if this GeoPoint came from a "fieldIsNear" query, this will return the distance between this point and the reference point from the query |
static Double |
kmToRadians(double km)
convert kilometers to radians on the Earth's surface |
static Double |
miToRadians(double mi)
convert miles to radians on the Earth's surface |
static Double |
radiansToKm(double radians)
convert radians on the Earth's surface to kilometers |
static Double |
radiansToMi(double radians)
convert radians on the Earth's surface to miles |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public StackMobGeoPoint(Double lon,
Double lat)
lon - longitude between +/- 180lat - latitude between +/- 90| Method Detail |
|---|
public Double getLongitude()
public Double getLatitude()
public Double getQueryDistanceRadians()
public List<String> asList()
public static Double radiansToMi(double radians)
radians - input radians
public static Double radiansToKm(double radians)
radians - input radians
public static Double miToRadians(double mi)
mi - input miles
public static Double kmToRadians(double km)
km - input kilometers
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||