Given the starting point (origLat, origLon), the ending point (destLat, destlon) and the% completion of the trip. How to calculate the current position (curLat, curLon)?
The aviation form is an excellent resource that covers this issue and much more.
MTL provides good content for large circle calculations and some work applets that you can use to test your implementation.
:
curLat = origLat + percentageOfTripCompleted*(destLat-origLat); curLon = origLon + percentageOfTripCompleted*(destLon-origLon);
* , , .
Source: https://habr.com/ru/post/1770325/More articles:Inherit a class using a template function - c ++CGAffineTransformMakeRotation before CABasicAnimation - iosRun script after deployment - MSDeploy - .netPopulating DropDownList from DataSource - .netjquery: why does $ .get send an OPTION package? - jquerycan't install apt on macports - macportsMootools.get ('text') not working properly - javascriptRearrange the string using each x-letter position with PHP - loopsdisplay open nodes in the GWT tree - gwtHow to determine that the controller was called by g: include tag lib? - grailsAll Articles