Beispiel #1
0
 public void setGeoPoint(GeoPoint gp) {
   if ((gp == null) || !gp.isValid()) {
     this.setLatitude(0.0);
     this.setLongitude(0.0);
   } else {
     this.setLatitude(gp.getLatitude());
     this.setLongitude(gp.getLongitude());
   }
 }
Beispiel #2
0
 public boolean isValidGeoPoint() {
   return GeoPoint.isValid(this.getLatitude(), this.getLongitude());
 }