public class GPS {
private String strLat; //标准的纬度
private String strLon; //标准的经度
private double dDFLat; //纬度。单位:度分
private double dDFLon; //经度。单位:度分
private double dFLat; //纬度。单位:分
private double dFLon; //经度。单位:分
private double dDLat; //纬度。单位:度
private double dDLon; //经度。单位:度
private int iNetLat; //纬度的网格坐标
private int iNetLon; //经度的网格坐标
private boolean isValid; //GPS是否有效
private boolean isNetValid; //网格坐标是否有效
public boolean isValid() {
return isValid;
}
public boolean isNetValid() {
return isNetValid;
}
public String getGpsCode()
{
return strLat + "," + strLon;
}
public GPS() {
this.strLat = "";
this.strLon = "";
this.dDFLat = 0.0;
this.dDFLon = 0.0;
this.dFLat = 0.0;
this.dFLon = 0.0;
this.dDLat = 0.0;
this.dDLon = 0.0;
this.iNetLat = 0;
this.iNetLon = 0;
this.isValid = false;
private String strLat; //标准的纬度
private String strLon; //标准的经度
private double dDFLat; //纬度。单位:度分
private double dDFLon; //经度。单位:度分
private double dFLat; //纬度。单位:分
private double dFLon; //经度。单位:分
private double dDLat; //纬度。单位:度
private double dDLon; //经度。单位:度
private int iNetLat; //纬度的网格坐标
private int iNetLon; //经度的网格坐标
private boolean isValid; //GPS是否有效
private boolean isNetValid; //网格坐标是否有效
public boolean isValid() {
return isValid;
}
public boolean isNetValid() {
return isNetValid;
}
public String getGpsCode()
{
return strLat + "," + strLon;
}
public GPS() {
this.strLat = "";
this.strLon = "";
this.dDFLat = 0.0;
this.dDFLon = 0.0;
this.dFLat = 0.0;
this.dFLon = 0.0;
this.dDLat = 0.0;
this.dDLon = 0.0;
this.iNetLat = 0;
this.iNetLon = 0;
this.isValid = false;