Also ich habe hier Daten im WGS84 Format und möchte mit folgender Formel die Geschwindigkeit sowie den Weg berechnen:
Daten/Werte:
Code: Alles auswählen
x1 = 16.336716666666668 (NMEA: 1620.203)
y1 = 48.197476666666674 (NMEA: 4811.8486)
t1 = 2007-12-07 10:59:05.0
x2 = 16.33686833333333 (NMEA: 1620.2121)
y2 = 48.19746166666667 (NMEA: 4811.8477)
t2 = 2007-12-07 10:59:08.0
Code: Alles auswählen
∆v= (√((x2-x1)^2+) (y2-y1)^2)/∆t
∆s= (√((x2-x1)^2+) (y2-y1)^2)
Für den Weg kenne ich auch folgende Formel, jedoch wäre mir oben genannte Formel lieber (also Koordinatenformat ändern?):
Code: Alles auswählen
(Math.acos((Math.sin(lat1) * Math.sin(lat2)) + (Math.cos(lat1) * Math.cos(lat2)
* Math.cos((lon2) - (lon1))))) * EARTH_RADIUS;