public void update(Location curGPSFix) { // An elevation of 0.0 probably means that the elevation of the // POI is not known and should be set to the users GPS height // Note: this could be improved with calls to // http://www.geonames.org/export/web-services.html#astergdem // to estimate the correct height with DEM models like SRTM, AGDEM or GTOPO30 if (mGeoLoc.getAltitude() == 0.0) mGeoLoc.setAltitude(curGPSFix.getAltitude()); // compute the relative position vector from user position to POI location PhysicalPlace.convLocToVec(curGPSFix, mGeoLoc, locationVector); }
public double getAltitude() { return mGeoLoc.getAltitude(); }
public double getLongitude() { return mGeoLoc.getLongitude(); }