I have checked other questions but nobody is talking about how to calculate the height of an object using GPS,
Consider I have two data points vertically (not horizontally which calculates the distance), I have (lat1,lon1,alt1) and (lat2,lon2,alt2). now, How can I calculate the height of the object? Is there any formula using which I can get the height? consider a cube and data points are of the front top left and the front bottom left, can I get the height of this cube using these two data points using any formula?
If I am reading your question right, when you say height this is going to be the vertical. Simply go
(assuming alt2 > alt1) or go
This should give you the vertical rise irrespective of where the Lat, Long are in space!!!! Hope that solves it!