public final class GeoPos
extends Object
gps坐标
-
字段概要
字段
final double
final double
-
构造器概要
构造器
GeoPos(double lon,
double lat)
-
方法概要
toGeoPos(org.springframework.data.geo.Point point)
org.springframework.data.geo.Point
static org.springframework.data.geo.Point
double
double
从类继承的方法 java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
字段详细资料
-
Lon
public final double Lon
经度
-
Lat
public final double Lat
纬度
-
构造器详细资料
-
GeoPos
public GeoPos(double lon,
double lat)
throws Exception
GeoPos
- 参数:
lon - 经度
lat - 纬度
- 抛出:
Exception - lat < -90 || lat > 90, lon < -180 || lon > 180
-
方法详细资料
-
-
-
toPoint
public org.springframework.data.geo.Point toPoint()
-
toPoint
public static org.springframework.data.geo.Point toPoint(double lon,
double lat)
throws Exception
- 抛出:
Exception
-