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()); } }
public boolean isValidGeoPoint() { return GeoPoint.isValid(this.getLatitude(), this.getLongitude()); }