Esempio n. 1
0
  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);
  }
Esempio n. 2
0
 public double getAltitude() {
   return mGeoLoc.getAltitude();
 }
Esempio n. 3
0
 public double getLongitude() {
   return mGeoLoc.getLongitude();
 }