程序包 cn.myafx.cache

类 GeoPos

java.lang.Object
cn.myafx.cache.GeoPos

public final class GeoPos extends Object
gps坐标
  • 字段概要

    字段
    修饰符和类型
    字段
    说明
    final double
    纬度
    final double
    经度
  • 构造器概要

    构造器
    构造器
    说明
    GeoPos(double lon, double lat)
    GeoPos
  • 方法概要

    修饰符和类型
    方法
    说明
    static GeoPos
    toGeoPos(org.springframework.data.geo.Point point)
     
    org.springframework.data.geo.Point
     
    static org.springframework.data.geo.Point
    toPoint(double lon, double lat)
     
    double
    toX()
     
    double
    toY()
     

    从类继承的方法 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
  • 方法详细资料

    • toX

      public double toX()
    • toY

      public double toY()
    • toPoint

      public org.springframework.data.geo.Point toPoint()
    • toPoint

      public static org.springframework.data.geo.Point toPoint(double lon, double lat) throws Exception
      抛出:
      Exception
    • toGeoPos

      public static GeoPos toGeoPos(org.springframework.data.geo.Point point) throws Exception
      抛出:
      Exception