I have two points: A ( x1 ( latitude ), y1 ( longitude ), z1 ( elevation ) ) and B ( x2, y2, z2 ). x1,y1,z1 and x2,y2 are known, also I know the distance between A and B.

How can I calculate z2 without useing internet, totally offline ? ( I am useing Google Maps on Android )

  • 1
    Do you have an offline DEM to obtain the data from? Do you have a 3d vector from A to B? Distance is not enough to calculate Z for x2,y2. – Michael Stimson Mar 31 '17 at 5:29
  • You see I have only my coordinates ( x1, y1 ) from GPS, z1 from Android sensors and x2,y2 and AB from Google Maps. Nothing more :( Actually Ieven do not know what is DEM. – Salut Amigo Mar 31 '17 at 5:32
  • 1
    A DEM is a Digial Elevation Model, a floating point (usually) raster of elevations.. depending on how accurate you want there are free elevation models available - see SRTM www2.jpl.nasa.gov/srtm you work out your row, column from your x2,y2 and then read that cell for your elevation. – Michael Stimson Mar 31 '17 at 5:34
  • Got it. But how I guess DEM is a map, right ? So have to use or Google Map or DEM ? – Salut Amigo Mar 31 '17 at 5:39

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.