How would I calculate grade when I have lat, lon and elevation? I guess I would first need to calculate the distance between twp coordinates would be my first step. Then some geometry to get the grade.
So how do I calculate the distance? I have probably done it a million years ago but it is slipping my mind now,
So how do I calculate the distance? I have probably done it a million years ago but it is slipping my mind now,
Code:
lat lon ele
45.7079499587 -121.5234399587 94.3
45.7079499587 -121.5231900103 94
45.7079399843 -121.5225099865 93.5
45.7079399843 -121.5223000199 93.4
45.7079399843 -121.5220599622 93.4
45.7079699915 -121.5214200038 92.3
45.7079900242 -121.5201199707 89.1
45.7080300059 -121.519029988 83.8
45.7080500387 -121.5184600186 82.6
45.7080699876 -121.5180099942 81.1
45.7080999948 -121.5173199959 78.7
45.7080999948 -121.5172700398 78.6
45.7080999948 -121.5171699598 78.4
45.708130002 -121.516369991 75.6
45.7081399765 -121.5161399916 73.2
45.7081500348 -121.5158700105 69.7
45.7081500348 -121.5156899672 67.8