简体   繁体   中英

How to get the XYZ Velocity from two Lat / Lon points?

Lets say I have two XYZ ECEF (Earth Centered Earth Fixed) points, and I know the time it takes to get between them. How do I calculate the three dimensional xyz velocities? This is not a homework question, it's for a mapping project I'm working on and I'm not the greatest with GIS stuff.

As per your comment, you want Lat/Lng velocities. For this you need to know the time taken to travel. Then:

$latVelocity = ($start['lat']-$end['lat'])/$time;
$lngVelocity = ($start['lng']-$end['lng'])/$time;

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM